testdata: avoid messing with the host's mod cache (#198)
It turns out that the modules we include in testdata/mod via txtar-addmod don't result in the same h1 hash that one gets when using proxy.golang.org. As proof: $ go clean -modcache && go get -d rsc.io/quote@v1.5.2 && go test -short [...] --- FAIL: TestScripts/imports (0.06s) > garble build -tags buildtag go list error: exit status 1: verifying rsc.io/quote@v1.5.2: checksum mismatch downloaded: h1:w5fcysjrx7yqtD/aO+QwRjYZOKnaM9Uh2b40tElTs3Y= go.sum: h1:3fEykkD9k7lYzXqCYrwGAf7iNhbk4yCjHmKBN9td4L0= The added comment explains the situation in detail. For now, simply work around the issue by not sharing GOMODCACHE with the host.pull/200/head
parent
c9deff810b
commit
4f65e6f99c
Loading…
Reference in New Issue