From f7cc4ee882668aaa68eab219ccd0cc78e45e10cf Mon Sep 17 00:00:00 2001 From: j3n57h0m45 <77627854+j3n57h0m45@users.noreply.github.com> Date: Fri, 14 Jun 2024 16:43:39 +0200 Subject: [PATCH] Use go 1.22 (#96) --- .github/workflows/build-binary-package.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 2 +- .github/workflows/tests_deb.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-binary-package.yml b/.github/workflows/build-binary-package.yml index 3272d61..b2e3d01 100644 --- a/.github/workflows/build-binary-package.yml +++ b/.github/workflows/build-binary-package.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.7 + go-version: 1.22 - name: Build all platforms run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 61ee46c..9182869 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.7 + go-version: 1.22 - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d1f8839..6a506b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.7 + go-version: 1.22 - name: Build run: | diff --git a/.github/workflows/tests_deb.yml b/.github/workflows/tests_deb.yml index 831f657..5c55947 100644 --- a/.github/workflows/tests_deb.yml +++ b/.github/workflows/tests_deb.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.7 + go-version: 1.22 - name: Cache virtualenvs id: cache-pipenv diff --git a/Dockerfile b/Dockerfile index 86de60a..efdf2dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG GOVERSION=1.21.7 +ARG GOVERSION=1.22 FROM golang:${GOVERSION}-alpine AS build diff --git a/go.mod b/go.mod index 3efdf18..df4deb3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/crowdsecurity/cs-blocklist-mirror -go 1.21 +go 1.22 require ( github.com/crowdsecurity/crowdsec v1.5.5