Skip to content

Commit

Permalink
chore(build): Force rebuild of CLI if Git version description changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 30, 2023
1 parent 8825b5b commit 93d5bf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build-aux/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use vergen::EmitBuilder;
include!("../src/cli.rs");

fn main() {
println!("cargo:rerun-if-changed=.version");
let mut builder = EmitBuilder::builder();
// If passed a version from automake, use that instead of vergen's formatting
if let Ok(val) = env::var("VERSION_FROM_AUTOTOOLS") {
Expand Down

0 comments on commit 93d5bf4

Please sign in to comment.