cmd/go/internal/get: complete implementation

The original prototype only supported "go get thing"
and "go get -u" but not the obvious "go get -u thing".
Fix that.

Also add "go get -u=patch", as promised in the proposal.
(There it was called "-p", but that's a build flag already.)

Redefine "go get -m" (not implemented until now) to mean
"only update go.mod".

Fixes golang/go#24105.
Fixes golang/go#24486.

Change-Id: I981a86cf2b283f8d05e404292fa5d3482540105c
Reviewed-on: https://go-review.googlesource.com/122396
Reviewed-by: Bryan C. Mills <bcmills@google.com>
12 files changed
tree: 5b9baef6b9a97d56c6342f3862a0cb638932f501
  1. vendor/
  2. AUTHORS
  3. codereview.cfg
  4. CONTRIBUTING.md
  5. CONTRIBUTORS
  6. LICENSE
  7. main.go
  8. PATENTS
  9. README.md
README.md

Versioned Go Prototype (vgo)

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.

Download/Install

Use go get -u golang.org/x/vgo.

You can also manually git clone the repository to $GOPATH/src/golang.org/x/vgo.

Report Issues / Send Patches

See CONTRIBUTING.md.

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.

Thank you.