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

Spurious warning when running conda-lock install #544

Closed
2 tasks done
psarka opened this issue Nov 7, 2023 · 1 comment · Fixed by #547
Closed
2 tasks done

Spurious warning when running conda-lock install #544

psarka opened this issue Nov 7, 2023 · 1 comment · Fixed by #547

Comments

@psarka
Copy link

psarka commented Nov 7, 2023

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

Whenever I'm running conda-lock install, I get the following warning displayed:

WARNING:conda_lock.conda_lock:WARNING: installation of pip dependencies is only supported by the 'conda-lock install' and 'micromamba install' commands. Other tools may silently ignore them. For portability, we recommend using the newer unified lockfile format (i.e. removing the --kind=explicit argument.

I don't understand what it want's from me, as the lock file was produced by running conda-lockwithout the --kind=explicit flag.

And in any case, I'm a happy user of conda-lock & micromamba, and I really don't care about inferior tools getting things wrong :P

Additional Context

I've seen this warning in conda-lock versions, including the latest 2.4.2.

@maresb
Copy link
Contributor

maresb commented Nov 7, 2023

Ah, thanks for pointing this out!

This warning was intended to be emitted only when running conda-lock --kind=explicit. Internally, conda-lock install renders explicit for installing the conda deps. We should be suppressing the warning in this case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants