Skip to content

Commit 7c91402

Browse files
authored
fix: use fs_err for invalid source path (#1741)
1 parent 8b11b90 commit 7c91402

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/source/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ pub(crate) async fn fetch_source(
202202
rendered_sources.push(Source::Url(src.clone()));
203203
}
204204
Source::Path(src) => {
205-
let src_path = recipe_dir.join(src.path()).canonicalize()?;
205+
let rel_src_path = src.path();
206+
tracing::debug!("Processing source path '{}'", rel_src_path.display());
207+
let src_path = fs::canonicalize(recipe_dir.join(rel_src_path))?;
206208
tracing::info!("Fetching source from path: {}", src_path.display());
207209

208210
let dest_dir = if let Some(target_directory) = src.target_directory() {

0 commit comments

Comments
 (0)