-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: tests failing on linux-amd64-longtest #31946
Comments
@cherrymui Could you take a look at the failure with |
@jayconrod thanks for catching this. I'm not very familiar with
This is linking If linking this in is actually necessary, could the go command pass |
Experimented a little more, with a module
I don't think we should link in other main packages, because they cannot be imported, even with |
Change https://golang.org/cl/176417 mentions this issue: |
Each synthetic test main package (the actual main) imports all packages mentioned by the
Maybe. I'll check on this tomorrow. |
Thanks for the explanation. This seems weird to me, as |
Follow-up to CL 174061. This also fixes a break after GOSUMDB was introduced. Updates #31946 Updates #31673 Updates #31287 Updates #27171 Change-Id: I8e91e857f301b6b73cc90f2f2c68523412e22b46 Reviewed-on: https://go-review.googlesource.com/c/go/+/176417 Run-TryBot: Jay Conrod <jayconrod@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Change https://golang.org/cl/176558 mentions this issue: |
@cherrymui Agreed, it's definitely weird. It looks like |
@jayconrod, thanks for the fix!
I'm not sure why |
I initially thought |
Ok, thanks for the explanation. |
@gopherbot Please open backport issue to 1.12 |
Backport issue(s) opened: #32295 (for 1.12). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/179677 mentions this issue: |
…uilt as libraries This fixes TestScript/cover_pkgall_multiple_mains, which started failing after CL 174657. When compiling main packages with coverage instrumentation (e.g., for -coverpkg all), we now pass -p with the full import path instead of '-p main'. This avoids link errors 'duplicate symbol main.main (types 1 and 1)'. Fixes #32295 Updates #31946 Updates #32150 Change-Id: Id147527b1dbdc14bb33ac133c30d50c250b4365c Reviewed-on: https://go-review.googlesource.com/c/go/+/176558 Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> (cherry picked from commit 3b8c804) Reviewed-on: https://go-review.googlesource.com/c/go/+/179677
Several tests are failing:
https://build.golang.org/log/a96b4779e564bb3bae7d9495a6088b0d9018ad9c
The text was updated successfully, but these errors were encountered: