Show version, git hash, and build date in CLI output #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/version-info"
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?
Adds a build.rs that exposes GIT_HASH and BUILD_DATE as compile-time env vars (sourced from the surrounding env when set, otherwise from
git rev-parseanddate -u). The values are baked into the binary and surfaced via--version/-V, the help banner, and an info log line at startup so support can pin troubleshooting to an exact build.The Docker build path now accepts GIT_HASH and BUILD_DATE as build args; oci-build/build.nu reads them from the host git checkout and current UTC time and forwards them via --build-arg. The dummy-prebuild stage in the Dockerfile previously left stale fingerprints that caused the final cargo build to skip and ship a stub binary, so sources are now touched before the real build to force the bin target to actually rebuild.
Signed-off-by: nrupard natrsmith11@gmail.com