From 9e306a6f7716e41c24b693ba458ed5f638e93557 Mon Sep 17 00:00:00 2001 From: gabuzi <15203081+gabuzi@users.noreply.github.com> Date: Sat, 26 Oct 2024 23:47:00 +0100 Subject: [PATCH] Fix missing recipe_dir.join() for git paths Fixes #1139 --- src/source/git_source.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source/git_source.rs b/src/source/git_source.rs index 137a9c1b..f135218f 100644 --- a/src/source/git_source.rs +++ b/src/source/git_source.rs @@ -230,7 +230,7 @@ pub fn git_src( } } // git doesn't support UNC paths, hence we can't use std::fs::canonicalize - let path = dunce::canonicalize(path).map_err(|e| { + let path = dunce::canonicalize(recipe_dir.join(path)).map_err(|e| { tracing::error!("Path not found on system: {}", e); SourceError::GitError(format!("{}: Path not found on system", e)) })?;