Skip to content

Commit

Permalink
Add correct path from data-dir (#14894)
Browse files Browse the repository at this point in the history
Fix issue in #14879 with incorrect subdirectory.
Before: Appended `vendor/autoload`
After: Appends `nushell/vendor/autoload`
  • Loading branch information
NotTheDr01ds authored Jan 22, 2025
1 parent 73c08fc commit befedda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/nu-protocol/src/eval_const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ pub fn get_vendor_autoload_dirs(_engine_state: &EngineState) -> Vec<PathBuf> {
}

if let Some(data_dir) = nu_path::data_dir() {
append_fn(PathBuf::from(data_dir).join("vendor").join("autoload"));
append_fn(into_autoload_path_fn(PathBuf::from(data_dir)));
}

if let Some(path) = std::env::var_os("NU_VENDOR_AUTOLOAD_DIR") {
Expand Down

0 comments on commit befedda

Please sign in to comment.