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.
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. |
3 years ago | |
---|---|---|
.. | ||
bench | 3 years ago | |
mod | 3 years ago | |
scripts | 3 years ago |