mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-20 14:23:53 +08: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
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 New Issue
Block a user