pkgxdev / libpkgx

`import`… but with pkging powers
https://npmjs.com/libpkgx
Apache License 2.0
62 stars 11 forks source link

Allow to condition `provides` based on the version #68

Open felipecrs opened 5 months ago

felipecrs commented 5 months ago
          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