fix: stabilize proto build fingerprints

pull/370/head
zijiren233 2 months ago
parent 66507ebdda
commit f62cedd539
No known key found for this signature in database
GPG Key ID: 534E082AAA9B39DC

@ -1043,7 +1043,11 @@ fn build_playback_provider_protos(
fn prepare_build() -> Result<(PathBuf, PathBuf), Box<dyn std::error::Error>> {
let protoc = protoc_bin_vendored::protoc_bin_path()?;
let out_dir = build_out_dir()?;
emit_proto_rerun_if_changed(Path::new("proto"))?;
// Cargo resolves relative rerun paths against the package manifest directory,
// while the thin proto crates run this helper from the shared synctv-proto
// directory. Emit absolute paths so Cargo watches the files we actually read.
let proto_dir = fs::canonicalize("proto")?;
emit_proto_rerun_if_changed(&proto_dir)?;
Ok((protoc, out_dir))
}

Loading…
Cancel
Save