conda-build --channel CHANNEL --override-channels
always includes the "default" channel
#5338
Closed
2 tasks done
Checklist
What happened?
Issue
conda-build --help
provides the following description of the--override-channels
flag:But in fact the default channel is always searched. This is an issue for air-gapped machines where the default channel is unreachable but a local mirror is available. In such cases,
conda-build
will timeout while trying to fetch the index of http://repo.anaconda.org.Why "default" always added
conda-build
main function eventually callsconda_build.environ.get_install_actions
.get_install_actions
callsconda_build.index.get_build_index
without providing theomit_defaults
keyword argument. The default value ofomit_defaults
is False.omit_defaults
is always set to the default value False, there is no possible command-line flag or.condarc
setting that can ever makeomit_defaults
equal to True.omit_defaults = False
is thatconda.core.index.calculate_channel_urls
is called with the argumentprepend = True
. This adds the default channel to the list of channel URLs.--override-channels
flag, since the default channel is always present.Conda Info
Conda Config
Configuration files (by precedence order): ~/.condarc
Conda list
Additional Context
No response
The text was updated successfully, but these errors were encountered: