Skip to content

Commit

Permalink
update to masterminds/semver/v3
Browse files Browse the repository at this point in the history
explicitly call out `pre_releases` in source configure table.

Signed-off-by: Rui Yang <[email protected]>
  • Loading branch information
Rui Yang committed Jan 5, 2023
1 parent 7a84b20 commit cc28b36
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ differences:
<br>
Follows the rules outlined in
https://github.com/Masterminds/semver#checking-version-constraints
<br>
If the value appends with <code>-0</code> for pre-release versions,
<code>pre_releases</code> needs to be <code>true</code>.
</td>
</tr>
<tr>
<td><code>pre_releases</code> <em>(Optional)</em></td>
<td>
Includes pre-release versions. See [Pre-release versions](#pre-release-versions).
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion commands/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion commands/out.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit cc28b36

Please sign in to comment.