mamba icon indicating copy to clipboard operation
mamba copied to clipboard

add micromamba self-update functionality

Open wolfv opened this issue 3 years ago • 8 comments
trafficstars

  • [x] rerun shell init?!
  • [ ] Add update notification if newer version is available?
  • [x] Test (especially on Windows)
  • [x] Add Windows tricks to Bash ?!

wolfv avatar Oct 14 '22 09:10 wolfv

How would you now call this? Like this?

micromamba update --self 

I think this is a bit confusing because it mixes two commands, one to update and environment and one to update the install itself. The help page of update would include arguments for both which might be confusing. I would opt to add a new sub-command for this use-case. Something along the lines of:

micromamba self-update

WDYT?

baszalmstra avatar Oct 14 '22 09:10 baszalmstra

yeah, it was just a placeholder to use update --self. I think self-update could be fine.

Homebrew is using update to update homebrew, and upgrade to update packages. We're already using update to update packages so we need to come up with something else I think. Also it's confusing to make upgrade and update differnt...

wolfv avatar Oct 14 '22 10:10 wolfv

Homebrew is using update to update homebrew, and upgrade to update packages. We're already using update to update packages so we need to come up with something else I think. Also it's confusing to make upgrade and update different...

Thats indeed very confusing 😅

baszalmstra avatar Oct 14 '22 10:10 baszalmstra

The other option would be to specialcase micromamba update micromamba and also add a stage to micromamba update --all (if executed in the root prefix). But maybe it's better to let the micromamba self-modifications live outside the normal package management...

wolfv avatar Oct 14 '22 12:10 wolfv

But maybe it's better to let the micromamba self-modifications live outside the normal package management

Strongly agree!

jonashaag avatar Oct 14 '22 12:10 jonashaag

Going to try this in a funny customer environment :)

jonashaag avatar Oct 14 '22 15:10 jonashaag

Tested on Windows with micromamba.exe in Downloads:

error    libmamba Could not lock non-existing path 'C:\Users\USERNAME\conda-meta'
critical libmamba LockFile error. Aborting.

jonashaag avatar Oct 14 '22 15:10 jonashaag

ugh :) I get further on Windows, but then it silently crashes...

These are the last two log lines:

info     libmamba Transfer finalized, status: 304 [https://conda.anaconda.org/robostack-humble/win-64/repodata.json] 0 bytes
robostack-humble/win-64                                       No change
info     libmamba Reading cache files 'C:\Users\robostack\micromamba\pkgs\cache\5afe41e9.*' for repo index 'https://conda.anaconda.org/conda-forge/win-64'

wolfv avatar Oct 14 '22 16:10 wolfv

Should the documentation be updated to inform users of that feature?

AntoinePrv avatar Nov 02 '22 09:11 AntoinePrv

Yes, for sure!

wolfv avatar Nov 02 '22 09:11 wolfv