conda / conda-lock

Lightweight lockfile for conda environments
https://conda.github.io/conda-lock/
Other
467 stars 102 forks source link

Confusing warning "filtered out line ... due to unmatchable selector" #402

Open jeanas opened 1 year ago

jeanas commented 1 year ago

Checklist

What happened?

When using an environment.yml file containing dependency lines like

  - delocate # [osx]

I get warnings:

WARNING:conda_lock.src_parser.selectors:filtered out line `  - delocate # [osx]` due to unmatchable selector

It looks like this happens every time the solver runs for a platform that is not matched by the selector. This is also what I understand from the code.

However, I think a warning is not appropriate here since it's expected behavior. It first gave me the impression that my lock file was somehow malformed.