]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/{clean,test}: lock testexpire.txt
authorBryan C. Mills <bcmills@google.com>
Tue, 23 Oct 2018 19:39:07 +0000 (15:39 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 29 Nov 2018 18:17:56 +0000 (18:17 +0000)
commitc124a919716fd54f9b16b83fa94f68b0c8fc4681
tree4fb18d7e55536b28f9293f50b288050df5d18177
parent47dc92824613e8cb8435457c8b60ba6da671737d
cmd/go/internal/{clean,test}: lock testexpire.txt

Also check to make sure we don't overwrite a newer timestamp with an
older one.

testexpire.txt may be written concurrently, and a partially-written
timestamp may appear much older than the actual intended one. We don't
want to re-run tests that should still be cached.

Updates #26794

Change-Id: If56348e799f0e7be3c5bc91b4a336e23ad99f791
Reviewed-on: https://go-review.googlesource.com/c/146379
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/internal/clean/clean.go
src/cmd/go/internal/test/test.go