Skip to content

Commit 1bac1b3

Browse files
klkvrmattsse
andauthored
fix: join paths when passing args to forge build (#8371)
* fix: join paths when passing args to forge build * fmt --------- Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
1 parent 161605a commit 1bac1b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/forge/bin/cmd/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ impl BuildArgs {
9393
let mut files = vec![];
9494
if let Some(paths) = &self.paths {
9595
for path in paths {
96+
let joined = project.root().join(path);
97+
let path = if joined.exists() { &joined } else { path };
9698
files.extend(source_files_iter(path, MultiCompilerLanguage::FILE_EXTENSIONS));
9799
}
98100
}

0 commit comments

Comments
 (0)