Skip to content

Commit

Permalink
fix: join paths when passing args to forge build (#8371)
Browse files Browse the repository at this point in the history
* fix: join paths when passing args to forge build

* fmt

---------

Co-authored-by: Matthias Seitz <[email protected]>
  • Loading branch information
klkvr and mattsse authored Jul 5, 2024
1 parent 161605a commit 1bac1b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/forge/bin/cmd/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ impl BuildArgs {
let mut files = vec![];
if let Some(paths) = &self.paths {
for path in paths {
let joined = project.root().join(path);
let path = if joined.exists() { &joined } else { path };
files.extend(source_files_iter(path, MultiCompilerLanguage::FILE_EXTENSIONS));
}
}
Expand Down

0 comments on commit 1bac1b3

Please sign in to comment.