Skip to content

Commit 4af4d87

Browse files
committed
fix: ensure the watch/ignore directories are relative to the base
1 parent b789c85 commit 4af4d87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config/rt/watch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ impl RtcWatch {
6060
// Take the canonical path of each of the specified watch targets.
6161
let mut paths = vec![];
6262
for path in watch {
63+
let path = build.working_directory.join(path);
6364
let canon_path = path.canonicalize().map_err(|_| {
6465
anyhow!(
6566
"error taking the canonical path to the watch path: {:?}",
@@ -78,6 +79,7 @@ impl RtcWatch {
7879
let mut ignored_paths = ignore
7980
.into_iter()
8081
.map(|path| {
82+
let path = build.working_directory.join(path);
8183
path.canonicalize().map_err(|_| {
8284
anyhow!(
8385
"error taking the canonical path to the watch ignore path: {:?}",

0 commit comments

Comments
 (0)