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.pull/529/head
parent
e3a59eae07
commit
79b6e4db3d
Loading…
Reference in New Issue