Skip to content

Allow to condition provides based on the version #68

@felipecrs

Description

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

Originally posted by @jhheider in pkgxdev/pantry#5468 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions