Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConstraint ¶ added in v3.1.0
Returns true if the given revision is not an exact semver and can be parsed as a semver constraint
func MaxVersion ¶
MaxVersion takes a revision and a list of tags. If the revision is a version, it returns that version, even if it is not in the list of tags. If the revision is not a version, but is also not a constraint, it returns that revision, even if it is not in the list of tags. If the revision is a constraint, it iterates over the list of tags to find the "maximum" tag which satisfies that constraint. If the revision is a constraint, but no tag satisfies that constraint, then it returns an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.