dirty versions

This commit is contained in:
galister
2024-08-11 06:41:17 +09:00
parent d9287f3250
commit 8a4c7a400f

View File

@@ -14,7 +14,7 @@ fn main() {
fn get_version() -> Result<String, Box<dyn std::error::Error>> {
let re = Regex::new(r"v([0-9.]+)-([0-9]+)-g([a-f0-9]+)").unwrap(); // safe
let output = Command::new("git")
.args(["describe", "--tags", "--abbrev=7"])
.args(["describe", "--tags", "--abbrev=7", "--dirty"])
.output()?;
let output_str = String::from_utf8(output.stdout)?;