rattler-build icon indicating copy to clipboard operation
rattler-build copied to clipboard

Package content tests - add `exists / not_exists`

Open wolfv opened this issue 1 year ago • 5 comments

Sometimes you want to check that a file is there and sometimes the inverse.

We had ideas to use ~ foo.txt to say 'not exists' but people were against it.

Instead, let's use a dictionary like so:

package_content:
  include:
    exists: 
      - foo.hpp
    not_exists:
      - baz.hpp

wolfv avatar Jun 07 '24 13:06 wolfv

Note: this reflects includes and excludes from the regular "glob" places.

wolfv avatar Jun 07 '24 13:06 wolfv

Just ran into this, and it would indeed be nice. The most common exclusion check I think I have in recipes is making sure static libs aren't being installed, or e.g. any include files or any libs when e.g. headers and things are split into multiple outputs.

minrk avatar Apr 25 '25 17:04 minrk

We need to not make arbitray changes to the yaml. Otherwise other tools won't be able to process the recipes. These kinds of changes should be submitted as a CEP.

beckermr avatar Apr 25 '25 17:04 beckermr

Yes, I believe the CEP for this is here: https://github.com/conda/ceps/pull/84

minrk avatar Apr 25 '25 18:04 minrk

Cool. It needs to be put up for a vote and passed.

beckermr avatar Apr 25 '25 18:04 beckermr