]> Cypherpunks repositories - gostls13.git/commit
cmd/fix: support go versions with patch release
authorAlex Bozhenko <alexbozhenko@gmail.com>
Wed, 7 Feb 2024 15:19:06 +0000 (15:19 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 22 Feb 2024 05:31:47 +0000 (05:31 +0000)
commit7fd62ba821b1044e8e4077df052b0a1232672d57
tree980eb3628c8c89fd845e191b0af1f34beae4dad2
parent5d4e8f5162c97d9a51abbe55d0042fea9c6be3a0
cmd/fix: support go versions with patch release

Support go version with patch release(e.g. 1.21.0)
and release candidates(e.g. 1.21rc1)
when parsing the go version in the fix command
by using new "go/version" package.

Fixes #62584

Change-Id: I0ec16137c7a396c68039d374c770c4021fb54b4e
GitHub-Last-Rev: 76bced5c48334c0937289bce8bcf50f82e3f0b98
GitHub-Pull-Request: golang/go#62586
Reviewed-on: https://go-review.googlesource.com/c/go/+/527342
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Alex Bozhenko <alexbozhenko@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/fix/buildtag.go
src/cmd/fix/buildtag_test.go
src/cmd/fix/main.go
src/cmd/fix/main_test.go