|author||Russ Cox <firstname.lastname@example.org>||Thu Jul 05 15:19:36 2018 -0400|
|committer||Russ Cox <email@example.com>||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 firstname.lastname@example.org go: github.com/rsc/blackfriday/v2 v2.0.1-bad: missing or invalid go.mod go get email@example.com: missing or invalid go.mod After this CL: $ vgo get github.com/rsc/blackfriday/v2 go: firstname.lastname@example.org: missing github.com/rsc/blackfriday/go.mod and .../v2/go.mod at revision v2.0.0 go: error loading module requirements $ vgo get email@example.com go: firstname.lastname@example.org: 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 <email@example.com>
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.