diff --git a/README.md b/README.md index 3d91c73..5f5f5e3 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,15 @@ differences:
Follows the rules outlined in https://github.com/Masterminds/semver#checking-version-constraints +
+ If the value appends with -0 for pre-release versions, + pre_releases needs to be true. + + + + pre_releases (Optional) + + Includes pre-release versions. See [Pre-release versions](#pre-release-versions). diff --git a/commands/check.go b/commands/check.go index 38a816b..d05cee1 100644 --- a/commands/check.go +++ b/commands/check.go @@ -8,7 +8,7 @@ import ( "sort" "strings" - "github.com/Masterminds/semver" + "github.com/Masterminds/semver/v3" resource "github.com/concourse/registry-image-resource" "github.com/google/go-containerregistry/pkg/name" v1 "github.com/google/go-containerregistry/pkg/v1" diff --git a/commands/out.go b/commands/out.go index 2c98126..8aadad8 100644 --- a/commands/out.go +++ b/commands/out.go @@ -9,7 +9,7 @@ import ( "path/filepath" "strings" - "github.com/Masterminds/semver" + "github.com/Masterminds/semver/v3" resource "github.com/concourse/registry-image-resource" "github.com/google/go-containerregistry/pkg/authn" "github.com/google/go-containerregistry/pkg/name" diff --git a/go.mod b/go.mod index a508026..e171e4a 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/concourse/registry-image-resource require ( - github.com/Masterminds/semver v1.5.0 + github.com/Masterminds/semver/v3 v3.2.0 github.com/VividCortex/ewma v1.1.1 // indirect github.com/aws/aws-sdk-go v1.44.5 github.com/cenkalti/backoff v2.2.1+incompatible diff --git a/go.sum b/go.sum index 3c8531f..8836115 100644 --- a/go.sum +++ b/go.sum @@ -79,8 +79,8 @@ github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBp github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw=