[X] My problem is not solved in the Troubleshooting docs
Anaconda default channels
[X] I do NOT use the Anaconda default channels (pkgs/* etc.)
How did you install Mamba?
Mambaforge or latest Miniforge
Search tried in issue tracker
prune
Latest version of Mamba
[X] My problem is not solved with the latest version
Tried in Conda?
I have this problem with Conda as well, without using Mamba
Describe your issue
Using mamba version 1.5.5 or 1.5.6 with conda 23.11.0, mamba env update --prune --file <yaml-file> uninstalls all packages from the environment.
Repeating the update on the now empty environment reinstalls all the packages. And third run uninstalls them and so on.
This did not happen with mamba 1.4.2 conda 23.3.1.
Without the --prune flag, packages aren't uninstalled. It seems the prune logic has changed from pruning packages not specified in the file to pruning any packages that weren't updated.
mamba info / micromamba info
mamba version : 1.5.5
active environment : cds
active env location : /var/opt/conda/base/envs/cds
shell level : 2
user config file : /ligo/home/erik.vonreis/.condarc
populated config files : /var/opt/conda/base/.condarc
conda version : 23.11.0
conda-build version : 24.1.2
python version : 3.10.13.final.0
solver : libmamba (default)
virtual packages : __archspec=1=cascadelake
__conda=23.11.0=0
__glibc=2.31=0
__linux=5.10.0=0
__unix=0=0
base environment : /var/opt/conda/base (read only)
conda av data dir : /var/opt/conda/base/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
package cache : /var/opt/conda/base/pkgs
/ligo/home/erik.vonreis/.conda/pkgs
envs directories : /ligo/home/erik.vonreis/.conda/envs
/var/opt/conda/base/envs
platform : linux-64
user-agent : conda/23.11.0 requests/2.31.0 CPython/3.10.13 Linux/5.10.0-28-amd64 debian/11.9 glibc/2.31 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.5
UID:GID : 45517:45517
netrc file : None
offline mode : False
Troubleshooting docs
Anaconda default channels
How did you install Mamba?
Mambaforge or latest Miniforge
Search tried in issue tracker
prune
Latest version of Mamba
Tried in Conda?
I have this problem with Conda as well, without using Mamba
Describe your issue
Using mamba version 1.5.5 or 1.5.6 with conda 23.11.0,
mamba env update --prune --file <yaml-file>
uninstalls all packages from the environment.Repeating the update on the now empty environment reinstalls all the packages. And third run uninstalls them and so on.
This did not happen with mamba 1.4.2 conda 23.3.1.
Without the
--prune
flag, packages aren't uninstalled. It seems the prune logic has changed from pruning packages not specified in the file to pruning any packages that weren't updated.mamba info / micromamba info
Logs
environment.yml
~/.condarc