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

Better messages for platform selectors in environment.yml #105

Open
AlbertDeFusco opened this issue Apr 7, 2023 · 0 comments
Open

Better messages for platform selectors in environment.yml #105

AlbertDeFusco opened this issue Apr 7, 2023 · 0 comments

Comments

@AlbertDeFusco
Copy link
Contributor

Since cona-lock supports preprocessing selectors, they also work for conda-project

channels:
  - conda-forge
dependencies:
  - python=3.9
  - pywin32 # [win]

When running conda project lock the lock file is correctly generated, but the messages could be a little clearer or perhaps the warnings are not all that useful.

❯ conda project lock
Locking dependencies for environment default on platforms linux-64, win-64, osx-64, osx-arm64: ◜ WARNING:conda_lock.src_parser.selectors:filtered out line `  - pywin32 # [win]` due to unmatchable selector
WARNING:conda_lock.src_parser.selectors:filtered out line `  - pywin32 # [win]` due to unmatchable selector
WARNING:conda_lock.src_parser.selectors:filtered out line `  - pywin32 # [win]` due to unmatchable selector
Locking dependencies for environment default on platforms linux-64, win-64, osx-64, osx-arm64: done
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

No branches or pull requests

1 participant