cmd/go: 'go vet cmd' fails with "use of internal package" when run in GOROOT/src/cmd #42235
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I'm not actually sure whether this bug is in
cmd/go
or incmd/vet
.There was a similar issue (#41358) in
cmd/api
which we resolved by omitting the vendored packages. However, in this case I think we really should be runningvet
on these packages — we just need to getgo vet
to interpret the imports from within those packages correctly.This comment in
cmd/go
is related:go/src/cmd/go/internal/modload/load.go
Lines 1151 to 1155 in ece7a33
CC @matloob @jayconrod
The text was updated successfully, but these errors were encountered: