cmd/go/internal/modload: correctly report devel versions

This commit is contained in:
Leon Klingele 2019-01-30 18:02:44 +01:00
parent 56c9f8e8cf
commit 3b80c0e4b1
No known key found for this signature in database
GPG Key ID: 0C8AF48831EEC211
1 changed files with 1 additions and 1 deletions

View 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))
}