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