From 1b3c593fddb82bd210f2bed2b7668ab96a4ed713 Mon Sep 17 00:00:00 2001 From: Carolyn Van Slyck Date: Mon, 2 Apr 2018 21:36:34 -0500 Subject: [PATCH 1/2] Bump github.com/Masterminds/semver My pull request was merged, so switching back to upstream --- Gopkg.lock | 7 +++---- Gopkg.toml | 4 +--- vendor/github.com/Masterminds/semver/constraints.go | 2 +- vendor/github.com/Masterminds/semver/parse.go | 3 --- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 6cf0df0ced..a65c3106ee 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -2,11 +2,10 @@ [[projects]] - branch = "parse-constraints-with-dash-in-pre" + branch = "2.x" name = "github.com/Masterminds/semver" packages = ["."] - revision = "a93e51b5a57ef416dac8bb02d11407b6f55d8929" - source = "https://github.com/carolynvs/semver.git" + revision = "24642bd0573145a5ee04f9be773641695289be46" [[projects]] name = "github.com/Masterminds/vcs" @@ -89,6 +88,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "215239f4e1109f268dd0eb48480c4987cd66da5deb9ae0b0da15b3cd35d02cd3" + inputs-digest = "460ad7112866da4b9a0a626aa3e2fe80699c17bf871afb73b93f836418fb9298" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index c005b5864b..c0be92e3f4 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -1,8 +1,6 @@ -# https://github.com/Masterminds/semver/pull/60 [[constraint]] name = "github.com/Masterminds/semver" - source = "https://github.com/carolynvs/semver.git" - branch = "parse-constraints-with-dash-in-pre" + branch = "2.x" [[constraint]] name = "github.com/Masterminds/vcs" diff --git a/vendor/github.com/Masterminds/semver/constraints.go b/vendor/github.com/Masterminds/semver/constraints.go index 164c011673..4379a5609b 100644 --- a/vendor/github.com/Masterminds/semver/constraints.go +++ b/vendor/github.com/Masterminds/semver/constraints.go @@ -42,7 +42,7 @@ func init() { cvRegex)) constraintRangeRegex = regexp.MustCompile(fmt.Sprintf( - `\s*(%s)\s*-\s*(%s)\s*`, + `\s*(%s)\s* - \s*(%s)\s*`, cvRegex, cvRegex)) } diff --git a/vendor/github.com/Masterminds/semver/parse.go b/vendor/github.com/Masterminds/semver/parse.go index d4ec22f2d2..d6afa6c907 100644 --- a/vendor/github.com/Masterminds/semver/parse.go +++ b/vendor/github.com/Masterminds/semver/parse.go @@ -13,9 +13,6 @@ func rewriteRange(i string) string { } o := i for _, v := range m { - if strings.HasPrefix(v[0], "v") && versionRegex.MatchString(v[0]) { - continue - } t := fmt.Sprintf(">= %s, <= %s", v[1], v[11]) o = strings.Replace(o, v[0], t, 1) } From 310cf2410bc380423ba67e3d33fd35627d0dd9ea Mon Sep 17 00:00:00 2001 From: Carolyn Van Slyck Date: Mon, 2 Apr 2018 21:41:39 -0500 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 369b4c82a5..a20f552ad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ IMPROVEMENTS: ([#1549](https://github.com/golang/dep/pull/1549)). * Reduce network access by trusting local source information and only pulling from upstream when necessary ([#1250](https://github.com/golang/dep/pull/1250)). +* Update our dependency on Masterminds/semver to follow upstream again now that [Masterminds/semver#67](https://github.com/Masterminds/semver/pull/67) is merged([#1792](https://github.com/golang/dep/pull/1792)). WIP: * Enable importing external configuration from dependencies during init (#1277). This