From caf7ac2ad86798d533607ba290001aee110be57c Mon Sep 17 00:00:00 2001 From: Joel Takvorian Date: Mon, 17 Jun 2024 11:35:48 +0200 Subject: [PATCH] NETOBSERV-1707: move to go 1.22 (#675) --- .github/workflows/pull_request.yml | 2 +- .github/workflows/pull_request_e2e.yml | 2 +- .github/workflows/push_image.yml | 4 ++-- .github/workflows/push_image_pr.yml | 2 +- .github/workflows/release.yml | 2 +- .golangci.yml | 2 +- contrib/docker/Dockerfile | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b0a917fc8..a2ab5e059 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -28,7 +28,7 @@ jobs: - name: check clean vendors run: go mod vendor - name: upload coverage to codecov.io - if: ${{ matrix.go == '1.21' }} + if: ${{ matrix.go == '1.22' }} uses: codecov/codecov-action@v4 with: files: ./cover.out diff --git a/.github/workflows/pull_request_e2e.yml b/.github/workflows/pull_request_e2e.yml index e9a3f5b64..563b980da 100644 --- a/.github/workflows/pull_request_e2e.yml +++ b/.github/workflows/pull_request_e2e.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.21'] + go: ['1.22'] steps: - name: install make diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index 952d5b4c5..e809e6b86 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.21'] + go: ['1.22'] steps: - name: install make run: sudo apt-get install make @@ -46,7 +46,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.21'] + go: ['1.22'] steps: - name: install make run: sudo apt-get install make diff --git a/.github/workflows/push_image_pr.yml b/.github/workflows/push_image_pr.yml index 14299325e..621348b55 100644 --- a/.github/workflows/push_image_pr.yml +++ b/.github/workflows/push_image_pr.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.21'] + go: ['1.22'] steps: - name: install make run: sudo apt-get install make diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6f3c3eae..94d256491 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.21'] + go: ['1.22'] steps: - name: checkout uses: actions/checkout@v3 diff --git a/.golangci.yml b/.golangci.yml index 42088e4f2..370e1c36f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,7 +18,7 @@ linters: - unused linters-settings: stylecheck: - go: "1.21" + go: "1.22" gocritic: enabled-checks: - hugeParam diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index 85888adcf..96a49bf9a 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -1,7 +1,7 @@ # We do not use --platform feature to auto fill this ARG because of incompatibility between podman and docker ARG TARGETPLATFORM=linux/amd64 ARG BUILDPLATFORM=linux/amd64 -FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.21 as builder +FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.22 as builder ARG TARGETPLATFORM ARG TARGETARCH=amd64