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í 39372a8c9b testdata: don't let tests rely on rewriting mod files
In Go 1.15, if a dependency is required but not listed in go.mod/go.sum,
it's resolved and added automatically.

This is changing in 1.16. From that release, one will have to explicitly
update the mod files via 'go mod tidy' or 'go get'.

To get ahead of the curve, start using -mod=readonly to get the same
behavior in 1.15, and fix all existing tests.

The only tests that failed were imports.txt and syntax.txt, the only
ones to require other modules. But since we're here, let's add the 'go'
line to all go.mod files as well.
5 years ago
..
asm.txt testdata: don't let tests rely on rewriting mod files 5 years ago
basic.txt testdata: don't let tests rely on rewriting mod files 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 testdata: don't let tests rely on rewriting mod files 5 years ago
goversion.txt add test for Go version checking (#140) 5 years ago
help.txt all: update the docs a bit 5 years ago
implement.txt testdata: don't let tests rely on rewriting mod files 5 years ago
imports.txt testdata: don't let tests rely on rewriting mod files 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: don't let tests rely on rewriting mod files 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