]> Cypherpunks repositories - gostls13.git/commit
cmd/go: cache and replay command output during build
authorRuss Cox <rsc@golang.org>
Fri, 10 Nov 2017 19:44:31 +0000 (14:44 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 13 Nov 2017 14:54:53 +0000 (14:54 +0000)
commitf768693f58dd7f98bb95e696cd0aae185a47db66
tree5b39e191a08e22137e5d970052164e9a83f2d909
parent6e9960ea632cae58e6f8f494876f45fe05cc10b6
cmd/go: cache and replay command output during build

It's nice that

go build -gcflags=-m errors
go build -gcflags=-m errors

uses the cache for the second command.

Even nicer is to make the second command
print the same output as the first command.

Fixes #22587.

Change-Id: I64350839f01c86c9a095d9d22f6924cd7a0b9105
Reviewed-on: https://go-review.googlesource.com/77110
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/cache/hash.go
src/cmd/go/internal/work/action.go
src/cmd/go/internal/work/buildid.go
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/gc.go
src/cmd/go/internal/work/gccgo.go