libpkgx icon indicating copy to clipboard operation
libpkgx copied to clipboard

Allow to condition `provides` based on the version

Open felipecrs opened this issue 1 year ago • 0 comments

          just need to omit it; it would be a potential upgrade to libpkgx if desired.

Originally posted by @jhheider in https://github.com/pkgxdev/pantry/pull/5468#discussion_r1516599364

Just to keep this tracked. openjdk 21+ provides bin/jwebserver while older versions does not.

It would be nice something like the following were allowed:

provides:
  - bin/java
  - program: bin/jwebserver
    if: {{version.major}} >= 21

felipecrs avatar Mar 07 '24 18:03 felipecrs