x/tools/go/packages: go list emits no CompiledGoFiles for packages that depend on one with an error #28755
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
The TestLoadSyntaxError test case establishes an import graph a->b->c->d->e->f where e contains an error:
If you run tip go list on a and c (as in the test), the reported set of CompiledGoFiles is accurate only for e and f, but not for any package above them, presumably because no build was attempted for those packages:
Eliminating the type error cause go list to report CompiledGoFiles all the way up:
This is arguably a bug in go list, but it suggests we need better test coverage and a more complex and better documented workaround for missing CompiledGoFiles than go/packages has today.
The text was updated successfully, but these errors were encountered: