Skip to content

Commit

Permalink
Fix mamba init in combination with latest conda (#2249)
Browse files Browse the repository at this point in the history
Co-authored-by: Wolf <w.vollprecht@gmail.com>
  • Loading branch information
jonashaag and wolfv authored Feb 3, 2023
1 parent 72a1bad commit 6baa36f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ jobs:
pip install git+https://github.com/conda/conda-content-trust.git@main
./testserver.sh
- name: Shell init
shell: bash -l {0} -euo pipefail -x
run: |
mamba init
- name: Cleanup
shell: bash
if: always()
Expand Down
3 changes: 2 additions & 1 deletion mamba/mamba/mamba_shell_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def shell_init(args):
for_user = args.user
if not (args.install and args.user and args.system):
for_user = True
if args.no_user:
# no_user removed in Conda 23.1.0, see https://github.com/mamba-org/mamba/issues/2248
if hasattr(args, "no_user") and args.no_user:
for_user = False

anaconda_prompt = on_win and args.anaconda_prompt
Expand Down

0 comments on commit 6baa36f

Please sign in to comment.