]> Cypherpunks repositories - gostls13.git/commit
cmd/go: improve pseudo-version timestamp error
authorWalt Della <walt@javins.net>
Sun, 2 Feb 2020 05:58:37 +0000 (21:58 -0800)
committerBryan C. Mills <bcmills@google.com>
Thu, 12 Mar 2020 20:00:02 +0000 (20:00 +0000)
commite221a75deab7843d5414154000f5bea7abcb60c3
treec7ec3284f3afe74f65e25c8f015e860197dcaed9
parentc4113b64c2b21e55949f7b28249f03c25bf63072
cmd/go: improve pseudo-version timestamp error

The previous "invalid pseudo-version: does not match version-control
timestamp" error message used a different timestamp format than the
format used in go.mod and go.sum. For cut-and-paste-ability this patch
makes the two consistent.

Fixes #36974

Change-Id: I21f344ab9898cc584c0bcf4a75d74275a703c650
Reviewed-on: https://go-review.googlesource.com/c/go/+/217437
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modfetch/coderepo.go
src/cmd/go/internal/modfetch/pseudo.go
src/cmd/go/testdata/script/mod_invalid_version.txt