summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Schroeder <343840+fdncred@users.noreply.github.com>2023-03-31 11:23:17 -0500
committerGitHub <noreply@github.com>2023-03-31 09:23:17 -0700
commit02585da06164e30b764321ac827cd148bd64c6b8 (patch)
treee99f1d186a40713f894aca9a7e90f990b80f7a1b
parent461cd261c59a8de695dc68e4d46f2afc83d2761c (diff)
downloadvirtualenv-02585da06164e30b764321ac827cd148bd64c6b8.tar.gz
update nushell's str collect command to str join (#2532)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-rw-r--r--docs/changelog/2532.bugfix.rst2
-rw-r--r--src/virtualenv/activation/nushell/activate.nu4
2 files changed, 4 insertions, 2 deletions
diff --git a/docs/changelog/2532.bugfix.rst b/docs/changelog/2532.bugfix.rst
new file mode 100644
index 0000000..16922fd
--- /dev/null
+++ b/docs/changelog/2532.bugfix.rst
@@ -0,0 +1,2 @@
+The nushell command 'str collect' has been superseded by the 'str join' command. The activate.nu script has
+been updated to reflect this change.
diff --git a/src/virtualenv/activation/nushell/activate.nu b/src/virtualenv/activation/nushell/activate.nu
index 69755e6..3da1519 100644
--- a/src/virtualenv/activation/nushell/activate.nu
+++ b/src/virtualenv/activation/nushell/activate.nu
@@ -62,7 +62,7 @@ export-env {
)
let venv_path = ([$virtual_env $bin] | path join)
- let new_path = ($old_path | prepend $venv_path | str collect $path_sep)
+ let new_path = ($old_path | prepend $venv_path | str join $path_sep)
let new_env = {
$path_name : $new_path
@@ -102,7 +102,7 @@ export-env {
})
$new_env | merge {
- _OLD_VIRTUAL_PATH : ($old_path | str collect $path_sep)
+ _OLD_VIRTUAL_PATH : ($old_path | str join $path_sep)
_OLD_PROMPT_COMMAND : $old_prompt_command
PROMPT_COMMAND : $new_prompt
VIRTUAL_PROMPT : $virtual_prompt