Skip to content

Commit

Permalink
Bump toolchain to Go 1.22 and 1.23 (with 1.21 going EOL)
Browse files Browse the repository at this point in the history
This doesn't implement the switch to `toolchain` directive yet.
  • Loading branch information
jingyuanliang committed Sep 3, 2024
1 parent e267958 commit 19445a7
Show file tree
Hide file tree
Showing 7 changed files with 348 additions and 339 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crossbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
crossbuild:
strategy:
matrix:
go-version: [ "1.21", "1.22" ]
go-version: [ "1.22", "1.23" ]
platform: [ "ubuntu-latest" ]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ "1.21", "1.22" ]
go-version: [ "1.22", "1.23" ]
platform: [ "ubuntu-latest" ]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
tools:
strategy:
matrix:
go-version: [ "1.21", "1.22" ]
go-version: [ "1.22", "1.23" ]
platform: [ "ubuntu-latest" ]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ARCH := $(if $(GOARCH),$(GOARCH),$(shell GOTOOLCHAIN=local go env GOARCH))

TAG := $(VERSION)__$(OS)_$(ARCH)

GO_VERSION := 1.22
GO_VERSION := 1.23
BUILD_IMAGE := golang:$(GO_VERSION)-alpine

BIN_EXTENSION :=
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/thockin/go-build-template

go 1.21
go 1.22

require github.com/spf13/pflag v1.0.5 // indirect
require github.com/spf13/pflag v1.0.5
206 changes: 105 additions & 101 deletions tools/go.mod

Large diffs are not rendered by default.

469 changes: 237 additions & 232 deletions tools/go.sum

Large diffs are not rendered by default.

0 comments on commit 19445a7

Please sign in to comment.