-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
defaults
channel in .condarc
file when only conda-forge
is specified
#207
Comments
A simple way to remove would be to just do Could also override the |
Hi @jrbourbeau So we should be using We will take a look |
Ran into this as well in issue ( conda-forge/clangdev-feedstock#166 ), which led to a bit of a confusing linking error |
I think I have the same issue, although I did not use an environment file. I can verify that with this workflow:
the defaults channel is still used, and the contents of
Also, using the workaround suggested by @jakirkham works. |
Something else worth trying might be adding |
This is interesting behavior of Conda, to always add echo "" > test.condarc
conda config --add channels conda-forge --file test.condarc
cat test.condarc
# channels:
# - conda-forge
# - defaults
echo "channels: []" > test.condarc
conda config --add channels conda-forge --file test.condarc
cat test.condarc
# channels:
# - conda-forge |
This is even done in the source code for example 6 (although that's not what's shown on the readme); unfortunately all this does is add Log source for image: https://github.com/conda-incubator/setup-miniconda/actions/runs/10551479166/job/29228977318 Although this doesn't seem like what's intended from the example, it is intelligible from the source: Lines 128 to 131 in e5293c8
|
We're using
setup-miniconda
over indask-bigquery
and discovered that when using this environment file which specifies only theconda-forge
channel, along with thisconda-incubator/setup-miniconda
GitHub actions setup, which is using mambaforge and strict channel priority, we still end up with a few packages installed from themain
channel. This channel mixing is, I think, leading to CI errors for the project.If I look at the logs from this CI build
it appears
conda config --show-sources
, which is run duringsetup-miniconda
shows, two separate sources:/Users/runner/miniconda3/.condarc
: which only specifies theconda-forge
channel/Users/runner/.condarc
: which specifies bothconda-forge
anddefaults
So the
defaults
channel is being added at some point, but it's not clear to me where and how I can disable it from being added. Any help is appreciatedThe text was updated successfully, but these errors were encountered: