feat(package): publish semver sidecar alongside each agent binary #116
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/VA-114-version-sidecar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Publish a small, machine-readable
.versionsidecar next to each binary in the generic package so the vervain-server fetcher, which runs on a different arch and cannot execute the binary, can read the exact semver without byte-scanning the binary's rodata.A new step writes
out/vervainagent-6.versionandout/<ARTIFACT_NAME>.version, each containingsteps.version.outputs.value(the resolvedgit describesemver from oci-build/get-version.nu) as a single line. Both sidecars are added to the$filesupload list, so they publish to the pinned,stable, andlatestcoordinates exactly like the existing.sigfiles viaupload_immutable/upload_moving.The sidecar is unsigned metadata; the binary's integrity remains covered by the existing age/XEdDSA signature and SHA-256 checksum, which are unchanged. The sidecar content equals the binary's built-in
version::VERSIONbecause build.rs mirrors the samegit describe --tags --always --longlogic as get-version.nu.#VA-114