|author||Russ Cox <email@example.com>||Thu Jul 05 15:19:36 2018 -0400|
|committer||Russ Cox <firstname.lastname@example.org>||Thu Jul 12 03:17:41 2018 +0000|
cmd/go/internal/modfetch: add detail to "missing go.mod" errors Explain what's wrong better than "missing or invalid go.mod". While we're here, improve the signal-to-noise ratio too. Before this CL, using the scenario from golang/go#24522: $ vgo get github.com/rsc/blackfriday/v2 go: github.com/rsc/blackfriday/v2 v2.0.1: missing or invalid go.mod go get github.com/rsc/blackfriday/v2: missing or invalid go.mod $ vgo get email@example.com go: github.com/rsc/blackfriday/v2 v2.0.1-bad: missing or invalid go.mod go get firstname.lastname@example.org: missing or invalid go.mod After this CL: $ vgo get github.com/rsc/blackfriday/v2 go: email@example.com: missing github.com/rsc/blackfriday/go.mod and .../v2/go.mod at revision v2.0.0 go: error loading module requirements $ vgo get firstname.lastname@example.org go: email@example.com: go.mod has non-.../v2 module path "github.com/rsc/blackfriday" (and .../v2/go.mod does not exist) at revision v2.0.1-bad go: error loading module requirements Fixes golang/go#24522. Change-Id: I1471729cdde8345130d771f26b1501638b7452d2 Reviewed-on: https://go-review.googlesource.com/122399 Reviewed-by: Bryan C. Mills <firstname.lastname@example.org>
This repository holds a prototype of what the go command might look like with integrated support for package versioning.
See research.swtch.com/vgo for documents about the design.
go get -u golang.org/x/vgo.
You can also manually git clone the repository to
This is still a very early prototype. You are likely to run into bugs. Please file bugs in the main Go issue tracker, golang.org/issue, and put the prefix
x/vgo: in the issue title.