Skip to content

Commit fe7c210

Browse files
authored
Merge pull request #126 from mattfarina/modfix
Fixes issue with module path for v3
2 parents 0337c9b + 7e17568 commit fe7c210

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 3.0.1 (2019-09-13)
4+
5+
### Fixed
6+
7+
- #125: Fixes issue with module path for v3
8+
39
## 3.0.0 (2019-09-12)
410

511
This is a major release of the semver package which includes API changes. The Go

benchmark_test.go

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
package semver_test
1+
package semver
22

33
import (
44
"testing"
5-
6-
"github.com/Masterminds/semver"
75
)
86

97
/* Constraint creation benchmarks */
@@ -12,7 +10,7 @@ func benchNewConstraint(c string, b *testing.B) {
1210
b.ReportAllocs()
1311
b.ResetTimer()
1412
for i := 0; i < b.N; i++ {
15-
_, _ = semver.NewConstraint(c)
13+
_, _ = NewConstraint(c)
1614
}
1715
}
1816

@@ -57,8 +55,8 @@ func BenchmarkNewConstraintUnion(b *testing.B) {
5755
func benchCheckVersion(c, v string, b *testing.B) {
5856
b.ReportAllocs()
5957
b.ResetTimer()
60-
version, _ := semver.NewVersion(v)
61-
constraint, _ := semver.NewConstraint(c)
58+
version, _ := NewVersion(v)
59+
constraint, _ := NewConstraint(c)
6260

6361
for i := 0; i < b.N; i++ {
6462
constraint.Check(version)
@@ -104,8 +102,8 @@ func BenchmarkCheckVersionUnion(b *testing.B) {
104102
func benchValidateVersion(c, v string, b *testing.B) {
105103
b.ReportAllocs()
106104
b.ResetTimer()
107-
version, _ := semver.NewVersion(v)
108-
constraint, _ := semver.NewConstraint(c)
105+
version, _ := NewVersion(v)
106+
constraint, _ := NewConstraint(c)
109107

110108
for i := 0; i < b.N; i++ {
111109
constraint.Validate(version)
@@ -190,13 +188,13 @@ func BenchmarkValidateVersionUnionFail(b *testing.B) {
190188

191189
func benchNewVersion(v string, b *testing.B) {
192190
for i := 0; i < b.N; i++ {
193-
_, _ = semver.NewVersion(v)
191+
_, _ = NewVersion(v)
194192
}
195193
}
196194

197195
func benchStrictNewVersion(v string, b *testing.B) {
198196
for i := 0; i < b.N; i++ {
199-
_, _ = semver.StrictNewVersion(v)
197+
_, _ = StrictNewVersion(v)
200198
}
201199
}
202200

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/Masterminds/semver
1+
module github.com/Masterminds/semver/v3
22

33
go 1.12

0 commit comments

Comments
 (0)