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
**What type of PR is this?**
Feature
**What does this PR do? Why is it needed?**
Binaries built with rules_go leave `BuildInfo.Path` empty even though
analysis knows the main archive import path. `go version -m` and
`runtime/debug` clients use this field to identify the main package, as
they do for binaries built with `cmd/go`.
Pass the main package import path to the linker and serialize it with
Go 1.20's `debug.BuildInfo.String` API. Extend the builder and
end-to-end tests to cover binaries with and without dependency metadata.
This builds on #4595 and is deliberately limited to `BuildInfo.Path`;
main-module identity and build settings will be proposed separately.
**Which issues(s) does this PR fix?**
Part of #3090.
**Other notes for review**
None.
0 commit comments