diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 3f7c0bd95..e59519322 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -13,7 +13,7 @@ runs: uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: check-latest: true - go-version: "1.25" + go-version: "1.26" - name: Verify setup shell: bash diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 3194f48f2..182f2f914 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -19,4 +19,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 with: - version: v2.6.2 + version: v2.9.0 diff --git a/app/errors/errors.go b/app/errors/errors.go index 470be3128..a69838dfe 100644 --- a/app/errors/errors.go +++ b/app/errors/errors.go @@ -2,6 +2,7 @@ // Package errors provides errors with structured fields and stack traces. // It is a drop-in replacement for stdlib errors and should be used as such throughout the app. +// nolint:revive package errors import ( diff --git a/app/errors/go113.go b/app/errors/go113.go index 4b3fe526a..10e03ccae 100644 --- a/app/errors/go113.go +++ b/app/errors/go113.go @@ -1,6 +1,6 @@ // Copyright © 2022-2026 Obol Labs Inc. Licensed under the terms of a Business Source License 1.1 -//nolint:wrapcheck +//nolint:wrapcheck,revive package errors import ( diff --git a/core/consensus/metrics/metrics.go b/core/consensus/metrics/metrics.go index eb2997f5d..7ee78c9a6 100644 --- a/core/consensus/metrics/metrics.go +++ b/core/consensus/metrics/metrics.go @@ -1,5 +1,6 @@ // Copyright © 2022-2026 Obol Labs Inc. Licensed under the terms of a Business Source License 1.1 +//nolint:revive package metrics import ( diff --git a/core/tracker/inclusion.go b/core/tracker/inclusion.go index 78e66b576..80883e7ec 100644 --- a/core/tracker/inclusion.go +++ b/core/tracker/inclusion.go @@ -687,12 +687,7 @@ func (a *InclusionChecker) checkBlock(ctx context.Context, slot uint64, attDutie block := eth2Resp.Data - var found bool - if block != nil { - found = true - } else { - found = false - } + found := block != nil a.checkBlockFunc(ctx, slot, found)