go-version icon indicating copy to clipboard operation
go-version copied to clipboard

Support for version constraint wildcards

Open beornf opened this issue 2 years ago • 2 comments

I discovered you started a library after commenting on my PR at https://github.com/hashicorp/go-version/pull/49. I've written this PR which adds support for version wildcards and passes all https://github.com/Masterminds/semver test cases.

This also addresses a few issues:

  • Repeated calls to Constraints Check will mutate the object in PessimisticBump, TildeBump and CaretBump
  • Adding a prerelease check for all constraint functions
  • Empty string is treated the same as wildcards

beornf avatar Feb 12 '23 05:02 beornf

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 12 '23 05:02 CLAassistant