vcpkg registry for hsm-collector (in-repo)#1267
Conversation
Review: vcpkg registry for hsm-collector (#1267)Nicely scoped, well-documented change. The port recipe, version database, and CI lane are internally consistent and the recipe mirrors the established overlay port. I verified the two things a registry stands or falls on:
No correctness bugs or security issues in the diff. The comments below are about CI coverage and maintainability. Medium — the
|
PR #1267 Review — vcpkg registry for
|
Review: vcpkg registry for hsm-collector (in-repo) — PR #1267Overall this is a clean, well-documented change. I verified the important invariants and they hold; findings below are mostly about CI coverage and minor polish, not correctness of the port itself. What I verified ✅
Findings1. (Medium) CI never exercises the registry mechanism end-to-end. 2. (Minor) Trigger-path asymmetry between 3. (Minor) The registry-consume lane builds but doesn't run the consumer. 4. (Low) Fragile git-tree extraction in the version-DB check. 5. (Nit) PR description vs. implementation. 6. (Nit) Mutable action tags. Note (not blocking)The Nice work — the recipe and version-DB wiring look correct; the main thing I'd push on is closing the gap between "validates the port" and "validates the registry" (finding #1). |
Makes this repository usable as a vcpkg registry so many downstream projects can consume the native C++ collector with
vcpkg install hsm-collector— no checkout of the HSM sources required. (Chosen over conan: Windows/MSVC/Visual Studio target, no server needed. Chosen over a raw prebuilt zip: the collector is a static lib with transitive deps — vcpkg resolves libcurl/iphlpapi/pdh for the consumer.)What's here
ports/hsm-collector/— the registry port (portfile.cmake+vcpkg.json+copyright). Unlike the in-repo overlay port (src/native/collector/vcpkg-port, which builds from adjacent source for CI), this fetches a tagged source tarball (collector-v0.6.2, pinned by SHA512) so it's reproducible for external consumers.versions/baseline.json+versions/h-/hsm-collector.json— the vcpkg version database (0.6.2→ the port's git-tree).collector-v0.6.2pushed on master (8c90a0d7) — the stable ref the port downloads.0.4.0; aligned both to the library version0.6.2..github/workflows/hsm-collector-registry.yml— validates (1) the version DB matches the ports (x-verify-versions) and (2) the registry port installs + a consumer links against it.How a consumer uses it (after merge)
vcpkg-configuration.jsonadds this repo as a git registry forhsm-collector, thenvcpkg install hsm-collector[http]. The wiki "C++ Data Collector" page gets an "Install via vcpkg" section once this lands (baseline = a merged master commit).Maintenance
New collector version = push a
collector-v<semver>tag, bumpREF/SHA512+vcpkg.jsonversion, runvcpkg x-add-version hsm-collector.🤖 Generated with Claude Code