cmd/go: regression in behavior of DepsErrors #40544
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
The behavior of the DepsErrors field in the output of
go list -json -e
has changed between Go 1.14 and tip.In GOPATH-mode, have two packages
sandbox/foo
andsandbox/bar
, withsandbox/foo/foo.go
containingand
sandbox/bar/bar.go
containingRunning
go list -e -json .
insandbox/foo
with Go 1.14.4 would produce the following DepsErrors:the ImportStack would clearly indicate that this issue occurs in the sandbox/bar package.
However, running the same command with tip (f923374) produces the following output:
the ImportStack is truncated, and it is impossible to tell which package the error is coming from. This was caused by 641918e (/cc @matloob).
Interestingly, between 1.14 and 641918e, 74d6de0 improved on the error, by using a more accurate value for Pos:
The text was updated successfully, but these errors were encountered: