29208ce548
If you have a package p1 with an xtest (package p1_test) that imports p2, where p2 itself imports p1, then when trying to do coverage for p1 we need to make sure to recompile p2. The problem was that the overall package import graph looked like: main -> p1_test -> p2 -> p1 Since we were recompiling p1 with coverage, we correctly figured out that because p2 depends on a package being recompiled due to coverage, p2 also needs to be split (forked) to insert the dependency on the modified p1. But then we used the same logic to split p1_test and main, with the effect that the changes to p2 and p1_test and main were lost, since the caller was still holding on to the original main, not the split version. Change the code to treat main and p1_test as "already split" and just update them in place. Fixes #23314. Change-Id: If7edeca6e39cdaeb5b9380d00b0c7d8c5891f086 Reviewed-on: https://go-review.googlesource.com/86237 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> |
||
---|---|---|
.github | ||
api | ||
doc | ||
lib/time | ||
misc | ||
src | ||
test | ||
.gitattributes | ||
.gitignore | ||
AUTHORS | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
favicon.ico | ||
LICENSE | ||
PATENTS | ||
README.md | ||
robots.txt |
The Go Programming Language
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Download and Install
Binary Distributions
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
Install From Source
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Contributing
Go is the work of hundreds of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project does not use GitHub pull requests, and that we use the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.