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í 79b6e4db3d skip unnecessary "refusing to list" test errors
The added test case reproduces the failure if we uncomment the added
"continue" line in processImportCfg:

	# test/bar/exporttest [test/bar/exporttest.test]
	panic: refusing to list non-dependency package: test/bar/exporttest

	goroutine 1 [running]:
	mvdan.cc/garble.processImportCfg({0xc000166780?, 0xc0001f4a70?, 0x2?})
		/home/mvdan/src/garble/main.go:983 +0x58b
	mvdan.cc/garble.transformCompile({0xc000124020?, 0x11?, 0x12?})
		/home/mvdan/src/garble/main.go:736 +0x338

It seems like a quirk of cmd/go that it includes a redundant packagefile
line in this particular edge case, but it's generally harmless for "go
build". For "garble build" it's also harmless in principle, but in
practice we had sanity checks that got upset by the unexpected line.

For now, notice the edge case and ignore it.

Fixes #522.
2 years ago
..
asm.txt all: drop support for Go 1.17 2 years ago
basic.txt add missing context to two unmarshal errors 2 years ago
cgo.txt all: drop support for Go 1.17 2 years ago
crossbuild.txt all: drop support for Go 1.17 2 years ago
debugdir.txt all: drop support for Go 1.17 2 years ago
embed.txt all: drop support for Go 1.17 2 years ago
gogarble.txt all: drop support for Go 1.17 2 years ago
goversion.txt all: drop support for Go 1.17 2 years ago
help.txt add missing context to two unmarshal errors 2 years ago
implement.txt all: drop support for Go 1.17 2 years ago
imports.txt Fix removing named imports and fix removing imports with init() methods 2 years ago
init.txt all: drop support for Go 1.17 2 years ago
ldflags.txt all: drop support for Go 1.17 2 years ago
linkname.txt all: drop support for Go 1.17 2 years ago
literals.txt all: drop support for Go 1.17 2 years ago
modinfo.txt all: drop support for Go 1.17 2 years ago
plugin.txt all: drop support for Go 1.17 2 years ago
position.txt all: drop support for Go 1.17 2 years ago
reflect.txt make KnownReflectAPIs aware of variadic funcs 2 years ago
reverse.txt all: drop support for Go 1.17 2 years ago
seed-cache.txt all: drop support for Go 1.17 2 years ago
seed.txt all: drop support for Go 1.17 2 years ago
syntax.txt all: drop support for Go 1.17 2 years ago
test.txt skip unnecessary "refusing to list" test errors 2 years ago
tiny.txt all: drop support for Go 1.17 2 years ago