Skip to content

Commit 01172ec

Browse files
committed
fix: build issue with typify version changes
1 parent 95270ab commit 01172ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ fn substrait_version() -> Result<semver::Version, Box<dyn Error>> {
3131
"cargo:rerun-if-changed={}",
3232
Path::new("substrait").display()
3333
);
34+
// Rerun if dependencies have changed - especially if typify has changed, as
35+
// the code generated here depends on that
36+
println!("cargo:rerun-if-changed=Cargo.toml");
37+
println!("cargo:rerun-if-changed=Cargo.lock");
3438

3539
// Check if there is a submodule. This file is not included in the packaged crate.
3640
if Path::new(SUBMODULE_ROOT).join(".git").exists() {

0 commit comments

Comments
 (0)