Repository navigation
Install CI's packages from the configured channels, without -c nodefaults - #671
Merged
Merged
Conversation
…ults In an environment file, nodefaults is a keyword that drops the defaults channel. On the command line it is an ordinary channel name, and anaconda.org has a channel called nodefaults (empty for now), so `conda install -c nodefaults` searched it first, ahead of conda-forge, with strict channel priority: a package uploaded there would be what CI installed. setup-miniconda already makes conda-forge the only channel (conda-forge and defaults for PyPy), and the install now uses those.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #671 +/- ##
==========================================
+ Coverage 98.29% 99.03% +0.74%
==========================================
Files 105 105
Lines 31268 31268
Branches 3657 3657
==========================================
+ Hits 30735 30967 +232
+ Misses 371 195 -176
+ Partials 162 106 -56 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In an environment file,
nodefaultsis a keyword that drops thedefaultschannel. On the command line it is an ordinary channel name, and anaconda.org has a channel callednodefaults(empty for now). So CI's install searched it first, ahead of conda-forge, with strict channel priority: a package uploaded there would be what CI installs.setup-miniconda already makes conda-forge the only channel (conda-forge and
defaultsfor PyPy), and the install now uses those. Thenodefaultsentries inenvironment.ymlanddocs/env.ymlare the keyword, and stay.Evidence
conda search --override-channels -c nodefaults zlibsearcheshttps://conda.anaconda.org/nodefaults/osx-arm64and.../noarch, whoserepodata.jsonexists and lists no packages.conda-forge(anddefaultson PyPy) underChannels:.Merge Danger
Door: two-way
Blast Radius: CI only. The
nodefaultschannel is empty, so dropping it changes no solve.🤖 Generated with Claude Code