]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch: stop cutting the last character of versions
authorRoberto Selbach <roberto@selbach.ca>
Mon, 27 Aug 2018 15:57:32 +0000 (15:57 +0000)
committerBryan C. Mills <bcmills@google.com>
Thu, 13 Sep 2018 19:36:52 +0000 (19:36 +0000)
commit56dc1795e756767adb373a5bc151c9c820152025
tree25bd86b5fbefe00195686a6c9fb1dcf050c4fc33
parent8dbd9afbb05c77ca8426256d172f9e05fe48a0f0
cmd/go/internal/modfetch: stop cutting the last character of versions

When a zip archive for a module contains an unexpected file, the error
message removes the last character in the version number, e.g. an invalid
archive for "somemod@v1.2.3" would generate the following error:
"zip for somemod@1.2. has unexpected file..."

Change-Id: I366622df16a71fa7467a4bc62cb696e3e83a2942
GitHub-Last-Rev: f172283bcdffd45b485b1e8fd99795eb93fef726
GitHub-Pull-Request: golang/go#27279
Reviewed-on: https://go-review.googlesource.com/131635
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modfetch/fetch.go