]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modload: correctly report devel versions
authorLeon Klingele <git@leonklingele.de>
Wed, 30 Jan 2019 17:35:01 +0000 (17:35 +0000)
committerBryan C. Mills <bcmills@google.com>
Sat, 2 Mar 2019 05:04:22 +0000 (05:04 +0000)
Change-Id: Ie26b86c7502e41796732caad4d7e254246f70b7f
GitHub-Last-Rev: 3b80c0e4b17ec2b2a5b95e40d5880df2b856c6dd
GitHub-Pull-Request: golang/go#30002
Reviewed-on: https://go-review.googlesource.com/c/160426
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/internal/modload/build.go

index 2a8be90b78f542de486af40749d0e6b8dd2e5059..4d4e512ef57e41677a8735fe1745ab7a896ab0e4 100644 (file)
@@ -219,7 +219,7 @@ func PackageBuildInfo(path string, deps []string) string {
                if r.Path == "" {
                        h = "\t" + modfetch.Sum(mod)
                }
-               fmt.Fprintf(&buf, "dep\t%s\t%s%s\n", mod.Path, mod.Version, h)
+               fmt.Fprintf(&buf, "dep\t%s\t%s%s\n", mod.Path, mv, h)
                if r.Path != "" {
                        fmt.Fprintf(&buf, "=>\t%s\t%s\t%s\n", r.Path, r.Version, modfetch.Sum(r))
                }