From 5e6db32f1fce5bb9144a55b1b6d971cedef02c29 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Thu, 18 Apr 2024 09:15:43 -0500 Subject: [PATCH] Updating go version to 1.22.x Signed-off-by: Juan Bustamante --- .github/workflows/benchmark.yml | 2 +- .github/workflows/build.yml | 4 ++-- .github/workflows/compatibility.yml | 2 +- Makefile | 4 ++-- go.mod | 2 +- tools/go.mod | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index e0cdca24d0..e19d4d9a19 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -17,7 +17,7 @@ jobs: - name: Set up go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" - name: Set up go env run: | echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 831051c9c4..67d1a78707 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: - name: Set up go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" check-latest: true - name: Set up go env for Unix if: runner.os != 'Windows' @@ -186,7 +186,7 @@ jobs: - name: Set up go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" check-latest: true - name: Build run: | diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 5fe6fbb194..2f6b519220 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -46,7 +46,7 @@ jobs: - name: Set up go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" check-latest: true - name: Set up go env run: | diff --git a/Makefile b/Makefile index 928e1de5a6..0d1246ea27 100644 --- a/Makefile +++ b/Makefile @@ -164,8 +164,8 @@ install-golangci-lint: ## mod-tidy: Tidy Go modules mod-tidy: - $(GOCMD) mod tidy -compat=1.21 - cd tools && $(GOCMD) mod tidy -compat=1.21 + $(GOCMD) mod tidy -compat=1.22 + cd tools && $(GOCMD) mod tidy -compat=1.22 ## tidy: Tidy modules and format the code tidy: mod-tidy format diff --git a/go.mod b/go.mod index cc35a81bbb..f285127707 100644 --- a/go.mod +++ b/go.mod @@ -139,4 +139,4 @@ require ( gopkg.in/warnings.v0 v0.1.2 // indirect ) -go 1.21 +go 1.22 diff --git a/tools/go.mod b/tools/go.mod index 3d6bac6b3d..984efd80f5 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module github.com/buildpacks/pack/tools -go 1.21 +go 1.22 require ( github.com/golang/mock v1.6.0