depot/third_party/nixpkgs/pkgs/shells/ion/build-script.patch
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

17 lines
531 B
Diff

--- a/build.rs
+++ b/build.rs
@@ -23,13 +23,7 @@ fn write_version_file() -> io::Result<()> {
let target = env::var("TARGET").unwrap();
let version_fname = Path::new(&env::var("OUT_DIR").unwrap()).join("version_string");
let mut version_file = File::create(&version_fname)?;
- write!(
- &mut version_file,
- "r#\"ion {} ({})\nrev {}\"#",
- version,
- target,
- get_git_rev()?.trim()
- )?;
+ write!(&mut version_file, "r#\"ion {version} ({target})\n\"#")?;
Ok(())
}