From acf8f2c1545b4ce2459a48fac32340bad7e8c692 Mon Sep 17 00:00:00 2001 From: Leon Klingele Date: Wed, 30 Jan 2019 17:35:01 +0000 Subject: [PATCH] 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 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot --- src/cmd/go/internal/modload/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } -- 2.48.1