From 58da9d031dfc345b11876c3061fdebeddd2f5140 Mon Sep 17 00:00:00 2001 From: Andrei Smirnov Date: Mon, 11 Dec 2023 15:21:51 +0300 Subject: [PATCH] *: bump go version to 1.21.5 (#2746) The previous build failed due to older go version (1.21.4), now bumped to 1.21.5. category: fixbuild ticket: none --- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/govulncheck.yml | 2 +- .github/workflows/nightly-tests.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 8 ++++---- .github/workflows/verify-pr.yml | 2 +- .golangci.yml | 4 ++-- Dockerfile | 2 +- testutil/promrated/Dockerfile | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e5d2fedda..c528845e4 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -16,7 +16,7 @@ jobs: # Config options can be found in README here: https://github.com/golangci/golangci-lint-action - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index 62a3ca54e..1f8f06159 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -14,6 +14,6 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - run: go install golang.org/x/vuln/cmd/govulncheck@latest - run: govulncheck -show=stacks -test ./... diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index 6dc3a1968..90173d30c 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - uses: actions/cache@v3 with: path: | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 5d668e670..e2e13aa16 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-python@v2 - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - uses: pre-commit/action@v2.0.3 - name: notify failure diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ade57421..d39426aa2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: fetch-depth: 0 # Disable shallow checkout - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - run: go run . --help > cli-reference.txt - run: go run testutil/genchangelog/main.go - uses: softprops/action-gh-release@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9dfe5191e..1414c81e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - uses: actions/cache@v3 with: path: | @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - uses: actions/cache@v3 with: path: | @@ -51,7 +51,7 @@ jobs: - uses: docker/setup-buildx-action@v2 # For compose to build images - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - uses: actions/cache@v3 with: path: | @@ -78,7 +78,7 @@ jobs: - uses: docker/setup-buildx-action@v2 # For compose to build images - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - uses: actions/cache@v3 with: path: | diff --git a/.github/workflows/verify-pr.yml b/.github/workflows/verify-pr.yml index bf5d1c775..3e4c6007f 100644 --- a/.github/workflows/verify-pr.yml +++ b/.github/workflows/verify-pr.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.21.4' + go-version: '1.21.5' - name: "Verify PR" run: go run github.com/obolnetwork/charon/testutil/verifypr diff --git a/.golangci.yml b/.golangci.yml index 579ab883c..535e344bb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ run: timeout: 5m - go: "1.21.4" + go: "1.21.5" linters-settings: cyclop: max-complexity: 15 @@ -99,7 +99,7 @@ linters-settings: - "github.com/gogo/protobuf/proto" # Prefer google.golang.org/protobuf - "github.com/prometheus/client_golang/prometheus/promauto" # Prefer ./app/promauto staticcheck: - go: "1.21.4" + go: "1.21.5" checks: - "all" - "-SA1019" # Ignoring since github.com/drand/kyber/sign/bls uses Proof Of Possession as does Ethereum. diff --git a/Dockerfile b/Dockerfile index b9f3a6b84..6feccb44b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Container for building Go binary. -FROM golang:1.21.4-bullseye AS builder +FROM golang:1.21.5-bullseye AS builder # Install dependencies RUN apt-get update && apt-get install -y build-essential git # Prep and copy source diff --git a/testutil/promrated/Dockerfile b/testutil/promrated/Dockerfile index 60fe44f05..02865e6b8 100644 --- a/testutil/promrated/Dockerfile +++ b/testutil/promrated/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21.4-alpine AS builder +FROM golang:1.21.5-alpine AS builder # Install dependencies RUN apk add --no-cache build-base git