Skip to content

Commit bdb1691

Browse files
Add: Major version for direct dependency
Adds new major version for direct dependency. Now two different versions are required for the direct dependency. The mod files lists both versions are being used.
1 parent 61c23ee commit bdb1691

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

Diff for: go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ go 1.13
55
require (
66
golang.org/x/text v0.3.2 // indirect
77
rsc.io/quote v1.5.2
8+
rsc.io/quote/v3 v3.1.0
89
rsc.io/sampler v1.3.1 // indirect
910
)

Diff for: go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
55
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
66
rsc.io/quote v1.5.2 h1:w5fcysjrx7yqtD/aO+QwRjYZOKnaM9Uh2b40tElTs3Y=
77
rsc.io/quote v1.5.2/go.mod h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0=
8+
rsc.io/quote/v3 v3.1.0 h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=
9+
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
810
rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=
911
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
1012
rsc.io/sampler v1.3.1 h1:F0c3J2nQCdk9ODsNhU3sElnvPIxM/xV1c/qZuAeZmac=

Diff for: hello.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
package hello
22

3-
import "rsc.io/quote"
3+
import (
4+
"rsc.io/quote"
5+
quoteV3 "rsc.io/quote/v3"
6+
)
47

58
func Hello() string {
69
return quote.Hello()
710
}
11+
12+
func Proverb() string {
13+
return quoteV3.Concurrency()
14+
}

Diff for: hello_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ func TestHello(t *testing.T) {
88
t.Errorf("Hello() = %q, want %q", got, want)
99
}
1010
}
11+
12+
func TestProverb(t *testing.T) {
13+
want := "Concurrency is not parallelism."
14+
if got := Proverb(); got != want {
15+
t.Errorf("Proverb() = %q, want %q", got, want)
16+
}
17+
}

0 commit comments

Comments
 (0)