Skip to content

Commit c27144f

Browse files
committed
ci: skip golangci-lint online config verify (verify: false)
The golangci-lint-action@v9 default runs 'golangci-lint config verify', which fetches the JSON schema from golangci-lint.run. That fetch times out on runner network blips (context deadline exceeded) and fails the whole lint job — blocking the release build (build needs [test, lint]) — with nothing wrong in the code. Linting needs no network, so disable the online verify in both the CI and release lint jobs.
1 parent 4d58ab1 commit c27144f

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,8 @@ jobs:
8383
- uses: golangci/golangci-lint-action@v9
8484
with:
8585
version: v2.8.0
86+
# Skip the action's online `config verify` step: it fetches the
87+
# golangci JSON schema from golangci-lint.run, which times out on
88+
# runner network blips and fails the whole job (nothing to do with
89+
# our code). Linting itself needs no network.
90+
verify: false

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
- uses: golangci/golangci-lint-action@v9
4747
with:
4848
version: v2.8.0
49+
# Skip the action's online `config verify` step: it fetches the
50+
# golangci JSON schema from golangci-lint.run, which times out on
51+
# runner network blips and fails the whole job (nothing to do with
52+
# our code). Linting itself needs no network.
53+
verify: false
4954

5055
build:
5156
name: build ${{ matrix.name }}

0 commit comments

Comments
 (0)