You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/scripts
Daniel Martí 4f65e6f99c
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.
5 years ago
..
asm.txt testdata: don't let tests rely on rewriting mod files 5 years ago
basic.txt Share data between processes via a shared file. (#192) 5 years ago
cgo.txt testdata: don't let tests rely on rewriting mod files 5 years ago
debugdir.txt testdata: don't let tests rely on rewriting mod files 5 years ago
goprivate.txt obfuscate fewer std packages (#196) 5 years ago
goversion.txt add test for Go version checking (#140) 5 years ago
help.txt Share data between processes via a shared file. (#192) 5 years ago
implement.txt testdata: don't let tests rely on rewriting mod files 5 years ago
imports.txt testdata: avoid messing with the host's mod cache (#198) 5 years ago
init.txt testdata: don't let tests rely on rewriting mod files 5 years ago
ldflags.txt testdata: don't let tests rely on rewriting mod files 5 years ago
literals.txt testdata: don't let tests rely on rewriting mod files 5 years ago
modinfo.txt testdata: don't let tests rely on rewriting mod files 5 years ago
plugin.txt testdata: don't let tests rely on rewriting mod files 5 years ago
seed.txt testdata: don't let tests rely on rewriting mod files 5 years ago
syntax.txt testdata: avoid messing with the host's mod cache (#198) 5 years ago
test.txt testdata: don't let tests rely on rewriting mod files 5 years ago
tiny.txt testdata: don't let tests rely on rewriting mod files 5 years ago