9c447b7cf6
The documentation is yet to be written (more work in the go command remains first). This CL implements the toolchain selection described in https://go.dev/design/57001-gotoolchain#the-and-lines-in-in-the-work-module with these changes based on the issue discussion: 1. GOTOOLCHAIN=auto looks for a go1.19.1 binary in $PATH and if found uses it instead of downloading Go 1.19.1 as a module. 2. GOTOOLCHAIN=path is like GOTOOLCHAIN=auto, with downloading disabled. 3. GOTOOLCHAIN=auto+version and GOTOOLCHAIN=path+version set a different minimum version of Go to use during the version selection. The default is to use the newer of what's on the go line or the current toolchain. If you are have Go 1.22 installed locally and want to switch to a minimum of Go 1.25 with go.mod files allowed to bump even further, you would set GOTOOLCHAIN=auto+go1.25. The minimum is also important when there is no go.mod involved, such as when you write a tiny x.go program and run "go run x.go". That would get Go 1.25 in this example, instead of falling back to the local Go 1.22. Change-Id: I286625a24420424c313d1082b9949a463b2fe14a Reviewed-on: https://go-review.googlesource.com/c/go/+/494436 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Russ Cox <rsc@golang.org> |
||
---|---|---|
.github | ||
api | ||
doc | ||
lib/time | ||
misc | ||
src | ||
test | ||
.gitattributes | ||
.gitignore | ||
codereview.cfg | ||
CONTRIBUTING.md | ||
go.env | ||
LICENSE | ||
PATENTS | ||
README.md | ||
SECURITY.md |
The Go Programming Language
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Download and Install
Binary Distributions
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
Install From Source
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Contributing
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.