commit | 5f8d8161e66bda5fa9559648f7793e96885c89e3 | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Tue Jul 30 14:51:26 2019 -0400 |
committer | Bryan C. Mills <bcmills@google.com> | Tue Jul 30 20:16:45 2019 +0000 |
tree | 25aa0ac4a3e1bc97df1239269b59618464ac52b9 | |
parent | 2fc7574aab072c697d2d020fa48347b0c1b221e7 [diff] |
cmd/go/internal/cache: verify that timestamp is positive An apparent typo caused us to re-check size instead. Updates #29667 Change-Id: Icc1fb9cef1ba77b8490c8fbe6c343be06ff48d8d Reviewed-on: https://go-review.googlesource.com/c/go/+/188020 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
diff --git a/src/cmd/go/internal/cache/cache.go b/src/cmd/go/internal/cache/cache.go index 168ad32..a05a08f 100644 --- a/src/cmd/go/internal/cache/cache.go +++ b/src/cmd/go/internal/cache/cache.go
@@ -173,7 +173,7 @@ i++ } tm, err := strconv.ParseInt(string(etime[i:]), 10, 64) - if err != nil || size < 0 { + if err != nil || tm < 0 { return missing() }