cmd/go,x/tools/go/packages: doesn't propagate permission errors (missing from go list -e) #50869
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
Preface: this is another instance of
go list -e
failing and reporting the error on stderr, and go/packages trying to process stderr intelligently.Under certain conditions, go/packages will swallow permission errors and return no packages + no error. The bug boils down to the error processing in
golistState.invokeGo
.Simple reproducer: https://go.dev/play/p/L53GCKnfxg3
The text was updated successfully, but these errors were encountered: