cmd/go: go list misattributed error for missing dependency #70654
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.23.3 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Repository: github.com/nabice/golistissue
The project contains seven files, and I've reduced the code as much as possible to reproduce the issue.
git clone https://github.com/nabice/golistissue
go list -e -json=Name,ImportPath,Error,DepOnly,Module -compiled=true -test=false -export=true -deps=true -find=false -pgo=off -- ./...
What did you see happen?
What did you expect to see?
The github.com/pkg/errors package should not contain error information, and the package can be found. I tested it with Go 1.17, and the output was correct.
The text was updated successfully, but these errors were encountered: