New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: Duplicate symbols with more than one main package in -coverpkg [1.13 backport] #34223
Comments
Change https://golang.org/cl/195281 mentions this issue: |
@jayconrod Does this also affect Go 1.12? |
No, I don't think so. The original repro steps don't work on 1.12, and the modified test passes without the fix. I believe there were some changes to the linker in 1.13 that made it stricter about this kind of thing. The root cause of this issue is present in 1.12, but it doesn't seem to cause an error. So probably not worth cherry-picking there. |
We just hit this as well trying to upgrade our CI infrastructure for Go1.13. I'm guessing 1.13.1 is still a ways out based on this? |
@abraithwaite CL 195281 and CL 197064 are the proposed cherry picks for this issue. I'm not in charge of the release branch, but I believe Go 1.13.1 (scheduled for tomorrow) will be a security-only update and will not contain these fixes. Go 1.13.2 probably will contain these, and that should be out in early October. |
Closed by merging 613adc6 to release-branch.go1.13. |
…H mode If a generated test main package transitively depends on a main package, the main package will now always be rebuilt as a library and will not be compiled with '-p main'. This expands the fix for #30907, which only applied to packages with the BuildInfo set (main packages built in module mode). Linking multiple packages with BuildInfo caused link errors, but it appears these errors apply to some symbols in GOPATH mode. Fixes #34223 Change-Id: Ic1e53437942269a950dd7e45d163707922c92edd Reviewed-on: https://go-review.googlesource.com/c/go/+/195279 Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> (cherry picked from commit 24781a1) Reviewed-on: https://go-review.googlesource.com/c/go/+/195281
@FiloSottile requested issue #34114 to be considered for backport to the next 1.13 minor release.
The text was updated successfully, but these errors were encountered: