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/script
Daniel Martí 059c1d68e2 use fewer build flags when building std or cmd
When we use `go list` on the standard library, we need to be careful
about what flags are passed from the top-level build command,
because some flags are not going to be appropriate.
In particular, GOFLAGS=-modfile=... resulted in a failure,
reproduced via the GOFLAGS variable added to linker.txtar:

	go: inconsistent vendoring in /home/mvdan/tip/src:
		golang.org/x/crypto@v0.5.1-0.20230203195927-310bfa40f1e4: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
		golang.org/x/net@v0.7.0: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
		golang.org/x/sys@v0.5.1-0.20230208141308-4fee21c92339: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
		golang.org/x/text@v0.7.1-0.20230207171107-30dadde3188b: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod

		To ignore the vendor directory, use -mod=readonly or -mod=mod.
		To sync the vendor directory, run:
			go mod vendor

To work around this problem, reset the -mod and -modfile flags when
calling "go list" on the standard library, as those are the only two
flags which alter how we load the main module in a build.

The code which builds a modified cmd/link has a similar problem;
it already reset GOOS and GOARCH, but it could similarly run into
problems if other env vars like GOFLAGS were set.
To be on the safe side, we also disable GOENV and GOEXPERIMENT,
which we borrow from Go's bootstrapping commands.
3 years ago
..
asm.txtar drop support for Go 1.19 3 years ago
basic.txtar drop support for Go 1.19 3 years ago
cgo.txtar drop support for Go 1.19 3 years ago
crossbuild.txtar drop support for Go 1.19 3 years ago
debugdir.txtar drop support for Go 1.19 3 years ago
embed.txtar drop support for Go 1.19 3 years ago
goenv.txtar drop support for Go 1.19 3 years ago
gogarble.txtar drop support for Go 1.19 3 years ago
goversion.txtar drop support for Go 1.19 3 years ago
help.txtar drop support for Go 1.19 3 years ago
implement.txtar drop support for Go 1.19 3 years ago
imports.txtar drop support for Go 1.19 3 years ago
init.txtar drop support for Go 1.19 3 years ago
ldflags.txtar drop support for Go 1.19 3 years ago
linker.txtar use fewer build flags when building std or cmd 3 years ago
linkname.txtar drop support for Go 1.19 3 years ago
literals.txtar internal/literals: re-enable the seed obfuscator 3 years ago
modinfo.txtar drop support for Go 1.19 3 years ago
plugin.txtar drop support for Go 1.19 3 years ago
position.txtar drop support for Go 1.19 3 years ago
reflect.txtar drop support for Go 1.19 3 years ago
reverse.txtar drop bits of code to support Go 1.19 3 years ago
seed-cache.txtar drop support for Go 1.19 3 years ago
seed.txtar drop support for Go 1.19 3 years ago
syntax.txtar drop support for Go 1.19 3 years ago
test.txtar drop support for Go 1.19 3 years ago
tiny.txtar drop support for Go 1.19 3 years ago
typeparams.txtar drop support for Go 1.19 3 years ago