feat(build-info): embed version, git hash, and build date in binaries #9
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/build-info-version"
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?
Add a workspace crate
meshcentral-build-infowith a build script that emits compile-time constants for the application version, git commit, and UTC build timestamp. Each value can be overridden byVERVAIN_BUILD_VERSION,VERVAIN_BUILD_GIT_HASH, orVERVAIN_BUILD_DATE; otherwise the build script falls back togit describe --tags --always --dirty,git rev-parse HEAD, and the current UTC time.Wire the constants into the
meshcentralandmeshctrlclap definitions so--versionprints a multi-line banner with all three fields, into themeshcentral versionsubcommand, and into the server startup log line.Plumb the three env vars into
oci-build/Dockerfileas build args, since the production image build context does not include the .git directory and the build script cannot derive the values inside the builder stage on its own.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com