Skip to content

Commit a8adb9b

Browse files
committed
Add debug logging when prefix is detected
1 parent ef57ea7 commit a8adb9b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/volta-core/src/run/parser.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use crate::inventory::package_configs;
1111
use crate::platform::{Platform, PlatformSpec};
1212
use crate::tool::package::PackageManager;
1313
use crate::tool::Spec;
14+
use log::debug;
1415

1516
const UNSAFE_GLOBAL: &str = "VOLTA_UNSAFE_GLOBAL";
1617
/// Aliases that npm supports for the 'install' command
@@ -397,6 +398,10 @@ where
397398
}
398399
});
399400

401+
if has_global && has_prefix {
402+
debug!("Skipping global interception due to prefix argument");
403+
}
404+
400405
has_global && !has_prefix
401406
}
402407

0 commit comments

Comments
 (0)