aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authorIan Alexander <jitsu@google.com>2025-11-13 16:38:20 -0500
committerIan Alexander <jitsu@google.com>2025-11-22 06:13:24 -0800
commit337f7b1f5d18e8b2469a37174c24baced4c23801 (patch)
treeebf6d42212fd683a324dd9cfe650d63a806e1f63 /src/runtime/stack.go
parent3c26aef8fba0ef1f4d26d802ba037b43671924e9 (diff)
downloadgo-337f7b1f5d18e8b2469a37174c24baced4c23801.tar.xz
cmd/go: update default go directive in mod or work init
This commit updates the default go directive when initializing a new module. The current logic is to use the latest version supported by the toolchain. This behavior is simple, predictable, and importantly, it can work while completely offline (i.e., no internet connection required). This commit changes the default version to the following behavior: * If the current toolchain version is a stable version of Go 1.N.M, default to go 1.(N-1).0 * If the current toolchain version is a pre-release version of Go 1.N (Release Candidate M) or a development version of Go 1.N, default to go 1.(N-2).0 This behavior maintains the property of being able to work offline. Fixes #74748. Change-Id: I81f62eef29f1dd51060067c8075f61e7bcf57c20 Reviewed-on: https://go-review.googlesource.com/c/go/+/720480 Commit-Queue: Ian Alexander <jitsu@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Michael Matloob <matloob@google.com>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions