Skip to content

Precedence of $CONDARC and $MAMBARC #3126

@0xbe7a

Description

@0xbe7a

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

yes

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

When setting $CONDARC or $MAMBARC ignores all other configuration files in default locations.
conda handles them with the lowest precedence. Mamba also claims to do so: ttps://mamba.readthedocs.io/en/latest/user_guide/configuration.html#multiple-rc-files

mamba info / micromamba info

➜  mamba git:(main) ✗ micromamba info

       libmamba version : 1.5.6
     micromamba version : 1.5.6
           curl version : libcurl/8.1.2 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.55.1
     libarchive version : libarchive 3.5.3 zlib/1.2.12 liblzma/5.0.5 bz2lib/1.0.8
       envs directories : /Users/belastoyan/micromamba/envs
          package cache : /Users/belastoyan/micromamba/pkgs
                          /Users/belastoyan/.mamba/pkgs
            environment : None (not found)
           env location : -
      user config files : /Users/belastoyan/.mambarc
 populated config files : /Users/belastoyan/.mambarc
                          /Users/belastoyan/.condarc
       virtual packages : __unix=0=0
                          __osx=14.0=0
                          __archspec=1=arm64
               channels : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
                          [REDACTED]
       base environment : /Users/belastoyan/micromamba
               platform : osx-arm64

Logs

➜  mamba git:(main) ✗ ./bug.sh 
+ conda config --show-sources
==> /Users/belastoyan/.condarc <==
ssl_verify: False
channel_priority: strict
solver: libmamba

+ micromamba config sources
Configuration files (by precedence order):
~/.mambarc
~/.condarc
+ export CONDARC=/tmp/.condarc
+ CONDARC=/tmp/.condarc
+ conda config --show-sources
==> /Users/belastoyan/.condarc <==
ssl_verify: False
channel_priority: strict
solver: libmamba

+ micromamba config sources
Configuration files (by precedence order):
/tmp/.condarc (invalid)
+ micromamba --version
1.5.6
+ conda --version
conda 23.3.1

environment.yml

No response

~/.condarc

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions