mirror of https://github.com/golang/go.git
cmd/go/internal/modload: correctly report devel versions
This commit is contained in:
parent
56c9f8e8cf
commit
3b80c0e4b1
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue