From 7085d4cc83cd3a5aeb69a9ae68c8471a6ba45c58 Mon Sep 17 00:00:00 2001 From: Frederik Menke Date: Thu, 12 Feb 2026 10:19:07 +0100 Subject: [PATCH] Fix reading `env_dirs` for conda>=25.11 From conda version 25.11, the `conda info --envs --json` command no longer contains the `env_dirs` field, as described in https://github.com/conda/conda/pull/15353. This info is still contained in `conda info --json` however. --- modules/virtual_environments/conda.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/virtual_environments/conda.nu b/modules/virtual_environments/conda.nu index 42fa5235c..e55ad3a06 100644 --- a/modules/virtual_environments/conda.nu +++ b/modules/virtual_environments/conda.nu @@ -2,7 +2,7 @@ export def --env activate [ env_name?: string@'nu-complete conda envs' # name of the environment ] { - let conda_info = (conda info --envs --json | from json) + let conda_info = (conda info --json | from json) let env_name = if $env_name == null { "base"