mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix version generation
This is related to a prior set of patches, we're getting CI failures related to how tags are working (or not working); this hopefully fixes that.
This commit is contained in:
parent
ea8927fc55
commit
dc734dbfa8
1 changed files with 2 additions and 9 deletions
|
|
@ -10,16 +10,9 @@ use chrono::Local;
|
|||
|
||||
pub(crate) fn generate_version(add_timestamp: bool) {
|
||||
let output = if cfg!(target_os = "windows") {
|
||||
Command::new("cmd")
|
||||
.args(["/C", "git describe --tags --long"])
|
||||
.output()
|
||||
.expect("failed to execute process")
|
||||
Command::new("cmd").args(["/C", "git describe --long"]).output().expect("failed to execute process")
|
||||
} else {
|
||||
Command::new("sh")
|
||||
.arg("-c")
|
||||
.arg("git describe --tags --long")
|
||||
.output()
|
||||
.expect("failed to execute process")
|
||||
Command::new("sh").arg("-c").arg("git describe --long").output().expect("failed to execute process")
|
||||
};
|
||||
let gitver = output.stdout;
|
||||
let semver = String::from_utf8_lossy(&gitver);
|
||||
|
|
|
|||
Loading…
Reference in a new issue