mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
build.rs: Panic if version could not be found
We don't want "fish --version" to print "unknown" or any other fake version
This commit is contained in:
parent
e24823dd6c
commit
5abd0e46f5
1 changed files with 1 additions and 2 deletions
3
build.rs
3
build.rs
|
@ -283,7 +283,6 @@ fn get_version(src_dir: &Path) -> String {
|
||||||
return version + "-g" + &rev;
|
return version + "-g" + &rev;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: Do we just use the cargo version here?
|
|
||||||
|
|
||||||
"unknown".to_string()
|
panic!("Could not get a version. Either set $FISH_BUILD_VERSION or install git.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue