Skip to content
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

mamba is not supported with a custom condarc #112

Closed
xhochy opened this issue Nov 24, 2020 · 5 comments
Closed

mamba is not supported with a custom condarc #112

xhochy opened this issue Nov 24, 2020 · 5 comments
Labels
type:bug Something isn't working

Comments

@xhochy
Copy link
Member

xhochy commented Nov 24, 2020

Using mamba with a custom .condarc where conda-forge is listed in it as a channel doesn't work as

if (!condaConfig["channels"].includes("conda-forge") && mambaVersion) {
only checks whether conda-forge is in the configuration of the action.

@bollwyvl
Copy link
Contributor

Thanks for the report! Yes, already on #107 (which we're hoping to land in staged) we read (and keep around) the environment file, adding the effective config at any given point would let us get a more full picture of channels.

However, no doubt there will be other channels that also include mamba... so maybe we just drop this check entirely.

Another thing: no doubt we'll have installers that result in a working mamba without doing a solve (either a micromamba #75 or just a miniforge #76 that has mamba). I think use of mamba still needs to be explicit, so if mamba-version is specified, we should just check whether the base env already has that (e.g. mamba version), rather than invoking the solver. Otherwise install.

@goanpeca goanpeca added the type:bug Something isn't working label Dec 19, 2020
@bollwyvl
Copy link
Contributor

This bug is still present on master... it just fails much more quickly. I think we should just drop the warning, and hope folks know what they're doing, e.g. specifying channels correctly via condarc, env or action (gah).

@bollwyvl
Copy link
Contributor

I think #133 fixes this, as it overhauled a lot of mamba stuff... i don't know what the time trade-off will be like between using mamba-version with the miniconda already on disk vs starting with Mambaforge, but at least it won't break this way anymore...

@goanpeca
Copy link
Member

@xhochy could you check running your CI with master conda-incubator/setup-miniconda@master and check if the problem is solved?

@xhochy
Copy link
Member Author

xhochy commented Feb 5, 2021

Yes, this solved it but I ran into another issue as part of this: #145

@xhochy xhochy closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants