go/src
Jay Conrod 4fc9d3bc58 [release-branch.go1.12] cmd/go: avoid link error when -coverpkg covers main packages (more)
This fixes two problems missed in CL 164877.

First, p.Internal.BuildInfo is now part of the cache key. This is
important since p.Internal.BuildInfo causes the build action to
synthesize a new source file, which affects the output.

Second, recompileForTest is always called for test
packages. Previously, it was only called when there were internal test
sources, so the fix in CL 164877 did not apply to packages that only
had external tests.

Fixes #30937

Change-Id: Iac2d7e8914f0313f9ab4222299a866f67889eb2e
Reviewed-on: https://go-review.googlesource.com/c/go/+/168200
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit d34548e0b6)
Reviewed-on: https://go-review.googlesource.com/c/go/+/168717
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-04-05 19:08:44 +00:00
..
archive archive/zip: fix casting overflow on 32-bit arch 2019-01-07 04:23:06 +00:00
bufio bufio: document relationship between UnreadByte/UnreadRune and Peek 2019-01-08 23:47:27 +00:00
builtin
bytes
cmd [release-branch.go1.12] cmd/go: avoid link error when -coverpkg covers main packages (more) 2019-04-05 19:08:44 +00:00
compress compress/flate: fix the old url for the flate algorithm 2018-12-20 18:15:50 +00:00
container
context
crypto [release-branch.go1.12] crypto/rc4: remove false guarantees from Reset docs and deprecate it 2019-02-22 18:31:50 +00:00
database/sql [release-branch.go1.12] database/sql/driver: fix typo 2019-02-17 15:20:06 +00:00
debug debug/gosym: remove outdated comment 2019-01-09 14:44:28 +00:00
encoding encoding/json: add comment for mashalererror struct 2019-01-15 23:30:58 +00:00
errors
expvar
flag flag: improve docs for PrintDefaults; clarify how to change output destination 2019-01-21 05:30:12 +00:00
fmt
go go/types: don't create new context string for each argument of each call 2019-01-09 16:10:07 +00:00
hash
html
image
index/suffixarray
internal Revert "[release-branch.go1.12] syscall: avoid _getdirentries64 on darwin" 2019-04-05 18:15:47 +00:00
io
log
math math/big: document that Rat.SetString accepts _decimal_ float representations 2019-01-17 23:04:06 +00:00
mime
net [release-branch.go1.12] net: use network and host as singleflight key during lookupIP 2019-04-02 17:40:15 +00:00
os Revert "[release-branch.go1.12] syscall: avoid _getdirentries64 on darwin" 2019-04-05 18:15:47 +00:00
path [release-branch.go1.12] path/filepath: don't discard .. in EvalSymlinks 2019-03-05 03:53:52 +00:00
plugin
reflect reflect: eliminate write barrier for copying result in callReflect 2019-02-01 19:23:02 +00:00
regexp
runtime [release-branch.go1.12] runtime: fix write barrier on wasm 2019-04-05 18:47:42 +00:00
sort sort: change let to let's 2019-01-27 01:34:56 +00:00
strconv strconv: make docs for Itoa and Atoi slightly higher level 2018-12-31 22:48:43 +00:00
strings
sync sync/atomic: add 32-bit MIPS to the 64-bit alignment requirement 2019-02-09 23:07:07 +00:00
syscall Revert "[release-branch.go1.12] syscall: avoid _getdirentries64 on darwin" 2019-04-05 18:15:47 +00:00
testdata
testing testing: report the failing test in a late log panic 2019-01-17 01:28:22 +00:00
text [release-branch.go1.12] text/template: error on method calls on nil interfaces 2019-03-13 21:00:26 +00:00
time time: return ENOENT if a zoneinfo zip file is not found 2018-12-24 19:25:18 +00:00
unicode
unsafe
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc