crossplane / example-cnp

Platform API as Configuration
Apache License 2.0
11 stars 5 forks source link

How should package dependency constraints be represented? #14

Open negz opened 4 years ago

negz commented 4 years ago

Per @lukeweber in https://github.com/crossplane/example-cnp/pull/11#discussion_r470158412

I assume we intend to support a set of comma separated constraints in this field. Would be great if we could agree on a standard to save ourselves time defining one.

I think this tool has a decent write up of a good set of constraints for semantic versions - https://github.com/Masterminds/semver#checking-version-constraints Terraform also has a version constraint syntax: https://www.terraform.io/docs/configuration/version-constraints.html#version-constraint-syntax

At first glance the Masterminds lib looks good.