Skip to content

Commit

Permalink
Fix helm-sys rebuilding itself on no-op changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nightkr committed Nov 5, 2024
1 parent f73001a commit f9a1f90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rust/helm-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ fn main() {

let bindings = bindgen::builder()
.header(build_path.join("libgo-helm-wrapper.h").to_str().unwrap())
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.parse_callbacks(Box::new(
bindgen::CargoCallbacks::new()
// libgo-helm-wrapper.h will *always* just have been rebuilt here by the gobuild above
// (and, conversely, if the gobuild *has* been rebuilt then we'll already be rebuilding the crate anyway)
.rerun_on_header_files(false),
))
.generate()
.expect("Failed to generate Rust bindings from Go header file");

Expand Down

0 comments on commit f9a1f90

Please sign in to comment.