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í 9fc19e8bdf support import paths ending with ".go"
When splitFlagsFromFiles saw "-p foo/bar.go",
it thought that was the first Go file, when in fact it's not.
We didn't notice because such import paths are pretty rare,
but they do exist, like github.com/nats-io/nats.go.

Before the fix, the added test case fails as expected:

	> garble build -tags buildtag
	[stderr]
	# test/main/goextension.go
	open test/main/goextension.go: no such file or directory

We could go through the trouble of teaching splitFlagsFromFiles about
all of the flags understood by the compiler and linker, but that feels
like far more code than the small alternative we went with.
And I'm pretty sure the alternative will work pretty reliably for now.

Fixes #539.
3 years ago
..
asm.txt all: drop support for Go 1.17 3 years ago
basic.txt add missing context to two unmarshal errors 3 years ago
cgo.txt all: drop support for Go 1.17 3 years ago
crossbuild.txt all: drop support for Go 1.17 3 years ago
debugdir.txt all: drop support for Go 1.17 3 years ago
embed.txt all: drop support for Go 1.17 3 years ago
gogarble.txt all: drop support for Go 1.17 3 years ago
goversion.txt all: drop support for Go 1.17 3 years ago
help.txt fix support with the latest Go master version 3 years ago
implement.txt all: drop support for Go 1.17 3 years ago
imports.txt support import paths ending with ".go" 3 years ago
init.txt all: drop support for Go 1.17 3 years ago
ldflags.txt all: drop support for Go 1.17 3 years ago
linkname.txt all: drop support for Go 1.17 3 years ago
literals.txt Disable seed obfuscator (#535) 3 years ago
modinfo.txt all: drop support for Go 1.17 3 years ago
plugin.txt all: drop support for Go 1.17 3 years ago
position.txt all: drop support for Go 1.17 3 years ago
reflect.txt fix support with the latest Go master version 3 years ago
reverse.txt all: drop support for Go 1.17 3 years ago
seed-cache.txt all: drop support for Go 1.17 3 years ago
seed.txt all: drop support for Go 1.17 3 years ago
syntax.txt all: drop support for Go 1.17 3 years ago
test.txt skip unnecessary "refusing to list" test errors 3 years ago
tiny.txt all: drop support for Go 1.17 3 years ago
typeparams.txt fix hashing of generic field names 3 years ago