-
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
Remove defaults channel on input channel: nodefaults
#364
base: main
Are you sure you want to change the base?
Conversation
Example 6 during
The patch is working as-intendend and in
But then there's something in the Ex6 config that differs from my simple test case that causes it to double-dip for |
Ok, got it: the setup runs |
E.g. because it is not there
Ok, the log shows the |
@conda-incubator/setup-miniconda tests are passing, just waiting on a review. |
core.info("Removing channel defaults"); | ||
if (channel === "nodefaults") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core.info("Removing channel defaults"); | |
if (channel === "nodefaults") { | |
if (channel === "nodefaults") { | |
core.info("Removing channel defaults"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a tiny comment with the logging statements. LGTM otherwise.
I don't agree we should further the "nodefaults" workaround in setup-miniconda, it's a bad API since it's not an actual channel and tends to increase the risk of a messy channel management |
I think it might be enough to simply offer "override_channels" as a config option, which requires specifying a channel but doesn't hard-code the "nodefaults" workaround. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more explicit and future-proof solution is relying on the --override-channels
CLI option since nodefaults
is a pretty bad workaround within conda. That way, running conda config --remove channels defaults
isn't needed here.
Co-authored-by: jaimergp <[email protected]>
@jaimergp, nice catch! Committed 🚀
@jezdez, the current situation is one "bad" API and a second API that silently deviates from the first API in an unproductive way (i.e. a channel named "nodefaults" is literally added to the channels list). Regardless of whether the I definitely like your suggested |
Nice, even better, if conda/conda#14227 is merged I think we can even simply close this PR? |
Yep, timing will work this time. The only other workaround right now is to explicitly pass a |
Haha, yep, did exactly that downstream a couple weeks ago! pyiron/actions#129 |
Changes conda setup to run
conda config --remove channels defaults
whennodefaults
is found in thechannels
input instead of adding the- nodefaults
channel. I.e.Will correctly give
Instead of
Here is a log of the modified version in action.
Closes #207