Repository navigation
cli: show the git commit in --version - #991
Conversation
Sashiko reviewCommit 1/1 —
|
sashiko --version prints only the crate version, so a locally built binary cannot be correlated with the commit it came from. build.rs already embeds GIT_HASH; surface it in the version string so run scripts and operators can record exactly which commit a binary was built from. Closes: sashiko-dev#987 Signed-off-by: Sendao Yan <yansendao@126.com>
e610bb1 to
312003e
Compare
Sashiko review — v2✓ No issues found across 1 commit. |
|
@rgushchin Thanks for the review and merge. |
sashiko --versionprints only the crate version, so a locally built binarycannot be correlated with the commit it came from.
build.rsalready embedsGIT_HASH; surface it in the version string:so run scripts and operators can record exactly which commit a binary was
built from. Closes #987.