Commit acf8f2c1 authored by Leon Klingele's avatar Leon Klingele Committed by Bryan C. Mills

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/160426Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 3fe97ba0
...@@ -219,7 +219,7 @@ func PackageBuildInfo(path string, deps []string) string { ...@@ -219,7 +219,7 @@ func PackageBuildInfo(path string, deps []string) string {
if r.Path == "" { if r.Path == "" {
h = "\t" + modfetch.Sum(mod) 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 != "" { if r.Path != "" {
fmt.Fprintf(&buf, "=>\t%s\t%s\t%s\n", r.Path, r.Version, modfetch.Sum(r)) fmt.Fprintf(&buf, "=>\t%s\t%s\t%s\n", r.Path, r.Version, modfetch.Sum(r))
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment