Skip to content

Commit 145f2ef

Browse files
committed
Do not rebuild if hidden dirs like .git change
1 parent d124a69 commit 145f2ef

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

rosrust_msg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "MIT"
66
name = "rosrust_msg"
77
readme = "../README.md"
88
repository = "https://github.com/adnanademovic/rosrust"
9-
version = "0.1.8"
9+
version = "0.1.9"
1010
build = "build.rs"
1111

1212
[dependencies]

rosrust_msg/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ pub fn rerun_if_folder_content_changed(folder: &Path) {
9595
return;
9696
}
9797
if let Some(name) = folder.to_str() {
98+
if name.starts_with('.') {
99+
// skip hidden dirs such as .git, .idea, etc
100+
return;
101+
}
102+
98103
rerun_if_file_changed(name);
99104
}
100105
if let Ok(children) = fs::read_dir(folder) {

0 commit comments

Comments
 (0)