-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: non-test race libraries are rebuilt by "go test -i -race" and vice-versa #19151
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
Comments
CL https://golang.org/cl/37594 mentions this issue. |
CL https://golang.org/cl/37598 mentions this issue. |
Re-opening for cherry-pick to 1.8.1 @ianlancetaylor, do you consider this low enough risk for a point release? |
Does this really meet the criterion for a minor release? It is an unfortunate regression, but it's also fairly easy to avoid using both |
That means no incremental builds for tests, and race builds are slow. Worse, it means rebuilding the stdlib every time, assuming you used Also, it broke a number of projects at Cloudflare because it causes writes to GOROOT, which result in a "Permission denied", which I can't fix at the package level. |
I think that https://golang.org/cl/37598 should be safe enough for the 1.8 release branch. It will need to be tested, though. Unfortunately I didn't think of a way to test that CL safely without modifying GOROOT. |
Sent CL 39592 to add a test that we can cherry-pick at the same time. |
CL https://golang.org/cl/39592 mentions this issue. |
This was fixed in CL 37598 but the test was (rightly) dropped because it modified $GOROOT. Here's a variant that does not. For #19151. Change-Id: Iccdbbf9ae8ac4c252e52f4f8ff996963573c4682 Reviewed-on: https://go-review.googlesource.com/39592 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
CL https://golang.org/cl/39618 mentions this issue. |
CL https://golang.org/cl/39617 mentions this issue. |
… 'go test -i -race' Manual port of CL 37598 (submitted for Go 1.9) to Go 1.8.1. Fixes #19133. Fixes #19151. Change-Id: I51707ea35068a393022f554b391ee2638dba16b5 Reviewed-on: https://go-review.googlesource.com/39617 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
This was fixed in CL 37598 but the test was (rightly) dropped because it modified $GOROOT. Here's a variant that does not. For #19151. Change-Id: Iccdbbf9ae8ac4c252e52f4f8ff996963573c4682 Reviewed-on: https://go-review.googlesource.com/39592 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-on: https://go-review.googlesource.com/39618 Reviewed-by: Austin Clements <austin@google.com>
Cherry-picked. |
Some customers had deployment issue because of golang/go#19151
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
All commands after the first should not need to install anything.
It works correctly without
-race
:What did you see instead?
Libraries are rebuilt and reinstalled every time the
-race
flag is added or removed.This is a problem because we ship our compiler with the race libraries prebuilt, install it system-wide where the builders don't have permission to write, and then always run
go test -i -race
before our tests to do incremental compilation of GOPATH packages. That now tries to install stdlib packages and fails.This is a regression from 1.7.
The text was updated successfully, but these errors were encountered: