aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modload/build.go
diff options
context:
space:
mode:
authorLeon Klingele <git@leonklingele.de>2019-01-30 17:35:01 +0000
committerBryan C. Mills <bcmills@google.com>2019-03-02 05:04:22 +0000
commitacf8f2c1545b4ce2459a48fac32340bad7e8c692 (patch)
tree044cb02cf28676c6b914a8204aa4f013cc7fef18 /src/cmd/go/internal/modload/build.go
parent3fe97ba0ff1262f86f75cbd141e4c1f50f0a919e (diff)
downloadgo-acf8f2c1545b4ce2459a48fac32340bad7e8c692.tar.gz
go-acf8f2c1545b4ce2459a48fac32340bad7e8c692.zip
cmd/go/internal/modload: correctly report devel versions
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>
Diffstat (limited to 'src/cmd/go/internal/modload/build.go')
-rw-r--r--src/cmd/go/internal/modload/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/modload/build.go b/src/cmd/go/internal/modload/build.go
index 2a8be90b78..4d4e512ef5 100644
--- a/src/cmd/go/internal/modload/build.go
+++ b/src/cmd/go/internal/modload/build.go
@@ -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))
}