cmd/go/internal/modfetch: report error when querying excluded version

This addresses the issue where silently a new version was selected
instead of downloading the version specified by the user when the
version was excluded in the go.mod file.

Fixes golang/go#24549

Change-Id: I94403025f9629981adf6d90f079e0e820bba0931
Reviewed-on: https://go-review.googlesource.com/113836
Reviewed-by: Russ Cox <rsc@golang.org>
2 files changed
tree: e101377d1e5c4224f90f988e1b602726319b714f
  1. vendor/
  2. AUTHORS
  3. CONTRIBUTING.md
  4. CONTRIBUTORS
  5. LICENSE
  6. PATENTS
  7. README.md
  8. codereview.cfg
  9. main.go
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.