rev
This commit is contained in:
parent
c925d09792
commit
873b39169e
|
@ -58,6 +58,5 @@ fn version() -> String {
|
|||
"v{} {}",
|
||||
built_info::PKG_VERSION,
|
||||
built_info::GIT_COMMIT_HASH_SHORT
|
||||
.unwrap_or(&env::var("GIT_COMMIT_HASH_SHORT").unwrap_or("unknown".to_string()))
|
||||
)
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
GIT_COMMIT_HASH_SHORT = self.rev or "dirty"; # or self.dirtyRev;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace crates/aiken/src/cmd/mod.rs --replace "built_info::GIT_COMMIT_HASH_SHORT" "\"$GIT_COMMIT_HASH_SHORT\""
|
||||
substituteInPlace crates/aiken/src/cmd/mod.rs --replace "built_info::GIT_COMMIT_HASH_SHORT" "\"$GIT_COMMIT_HASH_SHORT\".to_string()"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
|
Loading…
Reference in New Issue