| commit | fe83d4bcad745b5173185025bb88ac78dd980dc3 | [log] [tgz] |
|---|---|---|
| author | Michael Matloob <matloob@golang.org> | Tue Jul 29 17:12:24 2025 -0400 |
| committer | Carlos Amedee <carlos@golang.org> | Wed Aug 20 12:48:03 2025 -0700 |
| tree | 26bc79dac134167d0145f5bd7d7a04c32b5f1dd0 | |
| parent | 7f36edc26d4e3becb6d9c9008ff00f260bb19055 [diff] |
[release-branch.go1.24] cmd/go/internal/gover: fix ModIsPrerelease for toolchain versions We forgot to call the IsPrerelease function on FromToolchain(vers) rather than on vers itself. IsPrerelase expects a version without the "go" prefix. See the corresponding code in ModIsValid and ModIsPrefix that call FromToolchain before passing the versions to IsValid and IsLang respectively. Fixes #74821 Change-Id: I3cf055e1348e6a9dc0334e414f06fe85eaf78024 Reviewed-on: https://go-review.googlesource.com/c/go/+/691655 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Michael Matloob <matloob@golang.org> Reviewed-by: Michael Matloob <matloob@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> (cherry picked from commit 69338a335ada5882b888fb7eabe0ad6f0e12c986) Reviewed-on: https://go-review.googlesource.com/c/go/+/691957
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 Attribution 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.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
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.
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.