From 1bac1b3d79243cea755800bf396c30a3d74741bf Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Fri, 5 Jul 2024 15:40:38 +0300 Subject: [PATCH] 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 --- crates/forge/bin/cmd/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/forge/bin/cmd/build.rs b/crates/forge/bin/cmd/build.rs index e17a2cfaa..1538ca771 100644 --- a/crates/forge/bin/cmd/build.rs +++ b/crates/forge/bin/cmd/build.rs @@ -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)); } }