]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow querying other versions of the main module
authorJay Conrod <jayconrod@google.com>
Mon, 16 Nov 2020 21:27:19 +0000 (16:27 -0500)
committerJay Conrod <jayconrod@google.com>
Tue, 17 Nov 2020 18:28:55 +0000 (18:28 +0000)
commit01df2febf5f00b1dcba1843093ef99b338b23546
tree15512ceb6d0e62a352f88a03b1af6b02e8bb2e72
parent0968d2d599189229145b1000cec55d9df47fbc98
cmd/go: allow querying other versions of the main module

'go mod download' and a few other commands can now query specific
versions of the main module.

'go get' still reports an error when attempting to update the main
module.

Fixes #42524

Change-Id: Ia93ef8f5f34443e938667c48a0db432200108c63
Reviewed-on: https://go-review.googlesource.com/c/go/+/270520
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modcmd/download.go
src/cmd/go/internal/modload/query.go
src/cmd/go/testdata/script/mod_download.txt
src/cmd/go/testdata/script/mod_get_main.txt
src/cmd/go/testdata/script/mod_query_main.txt [new file with mode: 0644]