From 2068c2c169380b28d75e11c16b565caf1408858c Mon Sep 17 00:00:00 2001 From: Marcelo Duarte Trevisani Date: Fri, 14 Jul 2023 17:11:18 +0100 Subject: [PATCH] Update only base conda env (#495) --- src/steps/generic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index eda6ab27..56c4e060 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -339,7 +339,7 @@ pub fn run_conda_update(ctx: &ExecutionContext) -> Result<()> { print_separator("Conda"); let mut command = ctx.run_type().execute(conda); - command.args(["update", "--all"]); + command.args(["update", "--all", "-n", "base"]); if ctx.config().yes(Step::Conda) { command.arg("--yes"); } @@ -360,7 +360,7 @@ pub fn run_mamba_update(ctx: &ExecutionContext) -> Result<()> { print_separator("Mamba"); let mut command = ctx.run_type().execute(mamba); - command.args(["update", "--all"]); + command.args(["update", "--all", "-n", "base"]); if ctx.config().yes(Step::Mamba) { command.arg("--yes"); }