You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/gcimporter: set correct Package.Path for main packages
The compiler emits Path="main" for main packages because that's
the linker symbol prefix that it uses; but go/packages and x/tools
in general wants types.Package.Path to represent the path
as reported by go list.
This CL works around the bug by decoding path="main" as the
correct path for the package being decoded.
+ a test in go/packages
Fixesgolang/go#70742
Change-Id: I90f9234976cbfbe2a39c4da4852bc4a134fffd88
Reviewed-on: https://go-review.googlesource.com/c/tools/+/634922
Reviewed-by: Tim King <[email protected]>
Commit-Queue: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
0 commit comments