From 905f536579cfa41991ad09e9fa694e72ad3c0a27 Mon Sep 17 00:00:00 2001 From: Austin Vazquez Date: Tue, 27 Aug 2024 15:05:36 +0000 Subject: [PATCH] Update toolchain min version to Go 1.22 Signed-off-by: Austin Vazquez --- .github/workflows/benchmark_visualization.yml | 2 +- .github/workflows/build.yml | 2 +- .github/workflows/bump-deps.yml | 2 +- .github/workflows/comparision-test.yml | 2 +- .github/workflows/prebuild.yml | 2 +- .github/workflows/releases.yml | 2 +- Dockerfile | 2 +- cmd/go.mod | 2 +- docs/build.md | 2 +- go.mod | 2 +- go.work.example | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/benchmark_visualization.yml b/.github/workflows/benchmark_visualization.yml index dd19d2449..753857b4b 100644 --- a/.github/workflows/benchmark_visualization.yml +++ b/.github/workflows/benchmark_visualization.yml @@ -13,7 +13,7 @@ permissions: deployments: write env: - GO_VERSION: '1.21.12' + GO_VERSION: '1.22.6' jobs: benchmark: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0599f94ce..1a9f049c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ on: - 'scripts/**' env: - GO_VERSION: '1.21.12' + GO_VERSION: '1.22.6' jobs: setup: diff --git a/.github/workflows/bump-deps.yml b/.github/workflows/bump-deps.yml index 894b48a6a..10c404cf6 100644 --- a/.github/workflows/bump-deps.yml +++ b/.github/workflows/bump-deps.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: env: - GO_VERSION: '1.21.12' + GO_VERSION: '1.22.6' permissions: contents: write diff --git a/.github/workflows/comparision-test.yml b/.github/workflows/comparision-test.yml index cb00c602e..256adb76d 100644 --- a/.github/workflows/comparision-test.yml +++ b/.github/workflows/comparision-test.yml @@ -5,7 +5,7 @@ on: - cron: "0 0 */2 * *" # every 2 days env: - GO_VERSION: '1.21.12' + GO_VERSION: '1.22.6' jobs: check: diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index 1f74884c1..60f4a6635 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -7,7 +7,7 @@ on: branches: ['main', 'release/**'] env: - GO_VERSION: '1.21.12' + GO_VERSION: '1.22.6' GOLANGCI_LINT_VERSION: '1.56.2' jobs: diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index fc12d420b..f38fd34b6 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -12,7 +12,7 @@ on: - 'Makefile' env: - GO_VERSION: '1.21.12' + GO_VERSION: '1.22.6' permissions: contents: write diff --git a/Dockerfile b/Dockerfile index c8c2acd0f..82b2eef97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ ARG NERDCTL_VERSION=1.7.1 FROM public.ecr.aws/docker/library/registry:3.0.0-alpha.1 AS registry -FROM public.ecr.aws/docker/library/golang:1.21.13-alpine AS containerd-snapshotter-base +FROM public.ecr.aws/docker/library/golang:1.22.6-alpine AS containerd-snapshotter-base ARG CONTAINERD_VERSION ARG RUNC_VERSION diff --git a/cmd/go.mod b/cmd/go.mod index c9dac7672..22ef8bc13 100644 --- a/cmd/go.mod +++ b/cmd/go.mod @@ -1,6 +1,6 @@ module github.com/awslabs/soci-snapshotter/cmd -go 1.21 +go 1.22 require ( github.com/awslabs/soci-snapshotter v0.0.0-local diff --git a/docs/build.md b/docs/build.md index ee1f780fb..32e50932d 100644 --- a/docs/build.md +++ b/docs/build.md @@ -27,7 +27,7 @@ to install them on your machine: > have their own dependencies (e.g., containerd depends on runc/cni). Please refer > to their doc for a complete installation guide (mainly containerd). -- **[go](https://go.dev/doc/install) >= 1.21** - required to build the project; +- **[go](https://go.dev/doc/install) >= 1.22** - required to build the project; to confirm please check with `go version`. - **[containerd](https://github.com/containerd/containerd/blob/main/docs/getting-started.md) >= 1.4** - required to run the SOCI snapshotter; to confirm please check with `sudo containerd --version`. diff --git a/go.mod b/go.mod index bfadd9b7c..c1ddde45b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/awslabs/soci-snapshotter -go 1.21 +go 1.22 require ( github.com/containerd/containerd v1.7.20 diff --git a/go.work.example b/go.work.example index a9563370a..85038a377 100644 --- a/go.work.example +++ b/go.work.example @@ -1,4 +1,4 @@ -go 1.21 +go 1.22 use ( .