We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3fb46f commit 65edbd8Copy full SHA for 65edbd8
collector/src/execute.rs
@@ -52,8 +52,9 @@ fn touch(root: &Path, path: &Path) -> anyhow::Result<()> {
52
53
fn touch_all(path: &Path) -> anyhow::Result<()> {
54
let mut cmd = Command::new("bash");
55
+ // Don't touch files in `target/`, since they're likely generated by build scripts and might be from a dependency.
56
cmd.current_dir(path)
- .args(&["-c", "find . -name '*.rs' | xargs touch"]);
57
+ .args(&["-c", "find . -path ./target -prune -false -o -name '*.rs' | xargs touch"]);
58
command_output(&mut cmd).with_context(|| format!("touching all .rs in {:?}", path))?;
59
// We also delete the cmake caches to avoid errors when moving directories around.
60
// This might be a bit slower but at least things build
0 commit comments