You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Conda (and Mamba 1.x), running conda install foobar or mamba install foobar will install foobar in the base environment when no environment is activated. However, micromamba and mamba 2.0 will complain that no prefix is specified.
A first issue regarding Item 1 (on setting up the mamba package so that the root prefix is set to the installation prefix of mamba), is that running mamba shell init from the installed mamba package (with 2.0.0rc4) populates bashrc with:
# >>> mamba initialize >>># !! Contents within this block are managed by 'mamba shell init' !!export MAMBA_EXE='/home/sylvain/micromamba/envs/mamba/bin/mamba';export MAMBA_ROOT_PREFIX='/home/sylvain/micromamba';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX"2> /dev/null)"if [ $?-eq 0 ];theneval"$__mamba_setup"elsealias mamba="$MAMBA_EXE"# Fallback on help from mamba activatefiunset __mamba_setup
# <<< mamba initialize <<<
The fact that MAMBA_ROOT_PREFIX is set to HOME/micromamba is obviously a bug.
The fact that MAMBA_ROOT_PREFIX is set to HOME/micromamba is obviously a bug.
I don't get why this is a bug. Do you mean that it should be HOME/mamba instead?
IIRC HOME/micromamba is only used if it already exists (from previous usage of micromamba 1.x).
With Conda (and Mamba 1.x), running
conda install foobar
ormamba install foobar
will installfoobar
in the base environment when no environment is activated. However, micromamba and mamba 2.0 will complain that no prefix is specified.This is the root cause for the current failure when updating repo2docker to the latest rc of mamba 2.0.
I believe that we should support this behavior, as it will generally be expected from conda users who don't use environments much.
A possible approach would be to
The text was updated successfully, but these errors were encountered: