-
Notifications
You must be signed in to change notification settings - Fork 427
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
conda-build doesn't respect --override-channels ? #3693
Comments
For those specific packages such as If you try to search for
Did you see the same behavior for another package? |
I tried to give a simple example. My use case is with some private channels. In the described example, I'd expect the command to fail (due to some packages not found). Nothing will be downloaded from bioconda. Packages will be download from the conda-forge and defaults channels (defined in the When using |
Indeed, it seems like a bug. I will try to take a look a bit further. |
Related: how can one ignore |
I've been using conda-build recently, and I also am seeing the same behavior where Looking through the relevant code a bit, and I think the For example, where The |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
I can still reproduce the issue:
|
We need the ability for conda build to not download from defaults in order for us to complete some of the build automation we want for the rocket platform. This could be accomplished with a new option if that's easier. We specifically want an option that overrides all channels and doesn't try to be "smart" and contact defaults if it can't find the package. We explicitly want it to fail in this case. |
Repro steps: Let's take a recipe that looks like package:
name: test
version: 1.0.0
requirements:
host:
- libcurl Now, create an empty channel locally
Now build the test feedstock with I would expect conda-build to fail. Instead, it fetches packages from defaults. |
Actual Behavior
When running
conda build
with--override-channels --channel conda-forge
I would expect conda-build to only look and download packages from conda-forge. We can see below that some packages are downloaded from the defaults channel.Expected Behavior
When using
--override-channels
conda-build should only use the channels given on the command line.Steps to Reproduce
Try to build a recipe using
--override-channels
:Output of conda info
The text was updated successfully, but these errors were encountered: