i am working in an air gapped environment, using an artifactory mirror as my source for packages. i have recently updated miniconda to the latest version (having previously been on 24.7.1) and found that my docker image now breaks!
previously, we would explicitly drop the ‘defaults’ channel after adding our new mirror like so:
RUN conda config --prepend channels MIRRORCHANNEL
RUN conda config --remove channels defaults
however since the update, defaults no longer exists so this breaks. on paper the fix is easy enough - we simply drop the ‘remove channels’ command. in practice however, miniconda is now including two channels as default into our config which i dont seem to be able to delete via ‘remove channels’ - namely ‘anaconda/pkgs/main’ and ‘anaconda/pkgs/r’. how can i remove these channels from my miniconda installation? it is important to note that this issue will exist for all customers running miniconda on private endpoint networks in azure for instance.
thankyou for identifying the file that isnt being updated correctly, but unfortunately we are working in a dockerised setup so manually editing isnt an option. For us and any other users running a setup like this (im sure there are many cases, this isnt an unusual usecase) it wont solve the underlying issue.
is there anything we could do to get the conda config command updated such that it can be used to edit the condarc file itself? i highly doubt people explicitly calling to remove channels are hoping to remove these channels only from a higher condarc file that isnt considered at runtime!