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