mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.78k stars 348 forks source link

Feature request: Revisions #803

Open michaelaye opened 3 years ago

michaelaye commented 3 years ago

conda/mamba list -r lists revisions of the conda env.

conda install --revision REVISION brings the env back to that revision of the env, taking quite some time as a lot of package shuffling and revision list analysis needs to be done.

mamba install --revision REVISION doesn't do anything yet, could it be implemented? Would increase performance drastically, I bet?

owenlamont commented 2 years ago

I just tried to revert an environment with mamba install --revision (using mamba version 0.20) and it didn't error but just said all required packages already installed - rather than uninstall or downgrade the packages I wanted it to.

easp commented 1 year ago

This would save a lot of time. First, because conda is very slow when performing this operation and second, I spent a bunch of time trying to figure out why this wasn't working with mamba. There should at least be an error that explains the option isn't supported.

Maltimore commented 1 year ago

Maybe this issue needs the "bug" label and not the "feature request" label. Not giving an error here clearly is a bug, as the program does something incorrect but exits without error.

corneliusroemer commented 1 year ago

It would be amazing if micromamba could support revisions as it would allow one to save a botched/destroyed mamba environment.

Mamba destroyed my base environment by switching Python from arm to osx-64 and now neither conda nor mamba work anymore - so can't go back to previous revision. Micromamba support of revisions would be the perfect solution.

Update (2024-07-17): knowing mamba better now, I could have fixed the arch switch by setting --platform osx-arm64

sweettyler commented 1 year ago

can't believe this has not been fixed yet!

sh-shahrokhi commented 1 year ago

Hello, just wanted to add my voice this

dhirschfeld commented 6 months ago

This would be useful indeed 😔

mktippett commented 2 months ago

I expected mamba as a conda replacement to be able to do this. It would be great to either have this ability or be clear that version rollback only works with conda.

corneliusroemer commented 2 months ago

I have created a PR to document the limitations of (micro)mamba compared to conda - something that should be included if mamba bills itself as a conda reimplementation: #3348