1 env GO111MODULE=on
2
3 # Concurrent builds should succeed, even if they need to download modules.
4 go get ./x ./y
5 go build ./x &
6 go build ./y
7 wait
8
9 # Concurrent builds should update go.sum to the union of the hashes for the
10 # modules they read.
11 cmp go.sum go.sum.want
12
13 -- go.mod --
14 module golang.org/issue/26794
15
16 require (
17 golang.org/x/text v0.3.0
18 rsc.io/sampler v1.0.0
19 )
20 -- x/x.go --
21 package x
22
23 import _ "golang.org/x/text/language"
24 -- y/y.go --
25 package y
26
27 import _ "rsc.io/sampler"
28 -- go.sum.want --
29 golang.org/x/text v0.3.0 h1:ivTorhoiROmZ1mcs15mO2czVF0uy0tnezXpBVNzgrmA=
30 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
31 rsc.io/sampler v1.0.0 h1:SRJnjyQ07sAtq6G4RcfJEmz8JxqLyj3PoGXG2VhbDWo=
32 rsc.io/sampler v1.0.0/go.mod h1:cqxpM3ZVz9VtirqxZPmrWzkQ+UkiNiGtkrN+B+i8kx8=
33
View as plain text