conda-lock icon indicating copy to clipboard operation
conda-lock copied to clipboard

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

Open jeanas opened this issue 2 years ago • 0 comments

Checklist

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

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.

jeanas avatar May 03 '23 16:05 jeanas