Skip to content

Commit

Permalink
fix: ensure the watch/ignore directories are relative to the base
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed May 24, 2024
1 parent b789c85 commit 4af4d87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config/rt/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl RtcWatch {
// Take the canonical path of each of the specified watch targets.
let mut paths = vec![];
for path in watch {
let path = build.working_directory.join(path);
let canon_path = path.canonicalize().map_err(|_| {
anyhow!(
"error taking the canonical path to the watch path: {:?}",
Expand All @@ -78,6 +79,7 @@ impl RtcWatch {
let mut ignored_paths = ignore
.into_iter()
.map(|path| {
let path = build.working_directory.join(path);
path.canonicalize().map_err(|_| {
anyhow!(
"error taking the canonical path to the watch ignore path: {:?}",
Expand Down

0 comments on commit 4af4d87

Please sign in to comment.