Skip to content
Snippets Groups Projects
Commit dc517abd authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

fix: used to not update picodata --version often enough

parent e43a00ba
No related branches found
No related tags found
1 merge request!923fix: used to not update picodata --version often enough
Pipeline #36814 passed
......@@ -86,6 +86,14 @@ fn set_git_describe_env_var() {
);
let git_describe = std::str::from_utf8(&output.stdout).unwrap();
println!("cargo:rustc-env=GIT_DESCRIBE={git_describe}");
// We use output from `git describe` to generate picodata version info, so
// we must rerun this build script every time that output changes. We can't
// express this requirement explicitly using cargo's commands, but we can
// ask cargo to rerun every time one of the important .git/* files changes,
// which seems to do the trick for the most part.
println!("cargo:rerun-if-changed=.git/HEAD");
println!("cargo:rerun-if-changed=.git/refs");
}
fn generate_export_stubs(out_dir: &str) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment