@@ -345,11 +345,9 @@ impl Protocol for RattlerBuildBackend {
345
345
}
346
346
}
347
347
348
+ #[ allow( dead_code) ]
348
349
/// Returns the relative path from `base` to `input`, joined by "/".
349
- pub fn relative_path_joined (
350
- base : & std:: path:: Path ,
351
- input : & std:: path:: Path ,
352
- ) -> miette:: Result < String > {
350
+ fn relative_path_joined ( base : & std:: path:: Path , input : & std:: path:: Path ) -> miette:: Result < String > {
353
351
let rel = pathdiff:: diff_paths ( input, base) . ok_or_else ( || {
354
352
miette:: miette!(
355
353
"could not compute relative path from '{:?}' to '{:?}'" ,
@@ -372,6 +370,11 @@ fn build_input_globs(
372
370
// Always add the current directory of the package to the globs
373
371
let mut input_globs = vec ! [ "*/**" . to_string( ) ] ;
374
372
373
+ // TODO: Remove this condition when working on https://github.com/prefix-dev/pixi/issues/3785
374
+ if !source. is_absolute ( ) {
375
+ return Ok ( input_globs) ;
376
+ }
377
+
375
378
// Get parent directory path
376
379
let parent = if source. is_file ( ) {
377
380
// use the parent path as glob
@@ -380,7 +383,6 @@ fn build_input_globs(
380
383
// use the source path as glob
381
384
source. to_path_buf ( )
382
385
} ;
383
-
384
386
// If there are sources add them to the globs as well
385
387
if let Some ( package_sources) = package_sources {
386
388
for source in package_sources {
0 commit comments