Skip to content
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 [1.12 backport] #32295

Closed
gopherbot opened this issue May 28, 2019 · 5 comments
Closed

cmd/go: tests failing on linux-amd64-longtest [1.12 backport] #32295

gopherbot opened this issue May 28, 2019 · 5 comments

Comments

@gopherbot
Copy link

@gopherbot gopherbot commented May 28, 2019

@jayconrod requested issue #31946 to be considered for backport to the next 1.12 minor release.

@gopherbot Please open backport issue to 1.12

@jayconrod

This comment has been minimized.

Copy link
Contributor

@jayconrod jayconrod commented May 28, 2019

CL 176558 fixes another link error that occurs when -coverpkg covers multiple main packages, seen in #31946 and in #32150. It's a low risk one-line change, and there isn't a good workaround (aside from not using -coverpkg).

CL 164877 and CL 168200 are fixes for closely related problems, and these have already been backported.

@jayconrod

This comment has been minimized.

Copy link
Contributor

@jayconrod jayconrod commented May 28, 2019

(Sorry the title is a little misleading. #32150 is the user-reported issue and the motivation for cherry-picking. It was already fixed at tip for a test failure in #31946, which this issue is based on.)

@julieqiu

This comment has been minimized.

Copy link

@julieqiu julieqiu commented May 30, 2019

Approving since this is a serious problem with no workaround. Please follow the instructions at https://github.com/golang/go/wiki/MinorReleases to create the cherrypick CL.

@gopherbot

This comment has been minimized.

Copy link
Author

@gopherbot gopherbot commented May 30, 2019

Change https://golang.org/cl/179677 mentions this issue: [release-branch.go1.12] cmd/go: force -coverpkg main packages to be built as libraries

@gopherbot

This comment has been minimized.

Copy link
Author

@gopherbot gopherbot commented Jun 7, 2019

Closed by merging 451e6d6 to release-branch.go1.12.

@gopherbot gopherbot closed this Jun 7, 2019
gopherbot pushed a commit that referenced this issue Jun 7, 2019
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.