Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
alloncm committed Dec 20, 2024
1 parent 586a578 commit 42143e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ fn main() {
println!("cargo:rerun-if-changed={}", head_path.to_str().unwrap());
println!("cargo:rerun-if-changed={}", current_commit_file.to_str().unwrap());

let output = Command::new("git").args(&["rev-parse", "--short", "HEAD"]).output().unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap();
// let output = Command::new("git").args(&["rev-parse", "--short", "HEAD"]).output().unwrap();
// let git_hash = String::from_utf8(output.stdout).unwrap();
let git_hash = "0";
let version = env!("CARGO_PKG_VERSION");
println!("cargo:rustc-env=MAGENBOY_VERSION={}", std::format!("{}-{}", version, git_hash));
}

0 comments on commit 42143e8

Please sign in to comment.