]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix corner case missed rebuild of binary
authorRuss Cox <rsc@golang.org>
Sun, 5 Nov 2017 21:09:46 +0000 (16:09 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 6 Nov 2017 15:37:59 +0000 (15:37 +0000)
commitb4c84a1b010f012668b5e3ccaf63f609cd11c5fe
treebfc80c4689ecdaa8ff83cdc8ff4224fa63a915cc
parente247f4654ed437b2327ef2324fc0a8c9a22eae9b
cmd/go: fix corner case missed rebuild of binary

If the only thing changing in the binary is the embedded main.a action ID,
go install was declining to install the binary, but go list could see that the
binary needed reinstalling (was stale).

Fixes #22531.

Change-Id: I4a53b0ebd4c34aad907bab7da571fada545f3c6f
Reviewed-on: https://go-review.googlesource.com/76014
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/work/exec.go