Skip to content

Commit cc28b36

Browse files
author
Rui Yang
committed
update to masterminds/semver/v3
explicitly call out `pre_releases` in source configure table. Signed-off-by: Rui Yang <ruiya@vmware.com>
1 parent 7a84b20 commit cc28b36

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ differences:
9797
<br>
9898
Follows the rules outlined in
9999
https://github.com/Masterminds/semver#checking-version-constraints
100+
<br>
101+
If the value appends with <code>-0</code> for pre-release versions,
102+
<code>pre_releases</code> needs to be <code>true</code>.
103+
</td>
104+
</tr>
105+
<tr>
106+
<td><code>pre_releases</code> <em>(Optional)</em></td>
107+
<td>
108+
Includes pre-release versions. See [Pre-release versions](#pre-release-versions).
100109
</td>
101110
</tr>
102111
<tr>

commands/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sort"
99
"strings"
1010

11-
"github.com/Masterminds/semver"
11+
"github.com/Masterminds/semver/v3"
1212
resource "github.com/concourse/registry-image-resource"
1313
"github.com/google/go-containerregistry/pkg/name"
1414
v1 "github.com/google/go-containerregistry/pkg/v1"

commands/out.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"path/filepath"
1010
"strings"
1111

12-
"github.com/Masterminds/semver"
12+
"github.com/Masterminds/semver/v3"
1313
resource "github.com/concourse/registry-image-resource"
1414
"github.com/google/go-containerregistry/pkg/authn"
1515
"github.com/google/go-containerregistry/pkg/name"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/concourse/registry-image-resource
22

33
require (
4-
github.com/Masterminds/semver v1.5.0
4+
github.com/Masterminds/semver/v3 v3.2.0
55
github.com/VividCortex/ewma v1.1.1 // indirect
66
github.com/aws/aws-sdk-go v1.44.5
77
github.com/cenkalti/backoff v2.2.1+incompatible

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBp
7979
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
8080
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
8181
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
82-
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
83-
github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
82+
github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g=
83+
github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
8484
github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA=
8585
github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
8686
github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw=

0 commit comments

Comments
 (0)