cmd/go: go list should set Package.Root to the module root directory, not GOPATH #46119
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
From inside a module root directory:
go list -find -json ./pkg
What did you expect to see?
Package.Root
set to the current module root directory, ignoringGOPATH
.What did you see instead?
Package.Root
is set to theGOPATH
directory containing the package.The text was updated successfully, but these errors were encountered: