Ship the native collector static lib in the bundle (Option B: own adapter)#1220
Merged
Conversation
…pter) The aggregator builds by manual MSBuild vendoring (no vcpkg/Conan), and wants to write its own adapter against hsm::collector rather than relink the wrapper. Add hsm_collector_core.lib (x64 Debug+Release) to the bundle under lib/hsm_collector/; the hsm_collector/ headers already ship. The .lib carries both the C++ impl and the C ABI, so an adapter links it (+ Windows SDK iphlpapi/pdh + libcurl.lib) and drops the wrapper DLL entirely. MANIFEST now documents Option A (relink) vs Option B (native adapter) with the exact link line. pack.ps1 grabs the lib from the wrapper's collector subbuild (build/wrapper/ hsm_collector/<cfg>/) - no workflow change; the wrapper build already produces it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PR #1220 Review — bundle native collector libScope is small and focused: VerdictNo blocking bugs found. The change is correct and notably well-guarded. A few minor notes below, none blocking. What's correct / verified
Minor observations (non-blocking)
Security / performance
Nice work — the failure modes (missing lib, empty search, absent subdir) are all handled with loud, specific errors rather than silently shipping an incomplete bundle. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tt-aggregator2 is pivoting to write its own native adapter against
hsm::collector(rather than relink the wrapper), and they need the collector library. I confirmed against their repo that their native build is manual MSBuild vendoring (Bridge2022.sln/AggregationBridgeSvc.vcxproj,$(AggregatorInclude)/$(AggregatorLib)) — no vcpkg/Conan/NuGet — so a prebuilt lib in the handoff bundle is the fit (a C++ package manager doesn't apply to their build).hsm_collector_core.lib(x64 Debug+Release) underlib/hsm_collector/x64/{cfg}/. Thehsm_collector/headers already ship in the bundle.pack.ps1grabs the lib from the wrapper's collector subbuild (build/wrapper/hsm_collector/<cfg>/) — no workflow change (the wrapper build already produces it).hsm_collector_core.lib+ Windows SDKiphlpapi.lib/pdh.lib+libcurl.lib; runtimelibcurl.dll/z.dllalready shipped).Verified: a
workflow_dispatchbuild off this branch produced a bundle containinglib/hsm_collector/x64/{Release,Debug}/hsm_collector_core.lib.🤖 Generated with Claude Code