cmd/go/internal/mvs: fix get module@version ignoring @version

Fix vgo ignoring the version when it was resolved to v0.0.0-...
and go.mod file contained a higher version, e.g., v1.2.3.

Fix golang/go#25542

Change-Id: Ic6ade40c32ecd326cd9f47805f47b99a335a475c
Reviewed-on: https://go-review.googlesource.com/114735
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
3 files changed
tree: 2ac63edf136faa4aa8351015dcae9c7c37ec66e9
  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.