From 947b2aa862b0c9cc18e4652bf0d49878f13ca581 Mon Sep 17 00:00:00 2001 From: Yeagerist0 <180412661+Yeagerist0@users.noreply.github.com> Date: Mon, 19 Oct 2026 00:28:54 +0530 Subject: [PATCH] ci: bump golangci-lint to v2.15.0 for Go 1.27 The lint job installs Go with go-version "stable", which is now 1.27.2. golangci-lint v2.13.1 was built with an older Go and cannot read the 1.27 standard library export data, so every run fails with "could not import fmt ... export data version 5 is greater than maximum supported version 4" before it lints anything. v2.15.0 is built with Go 1.27. The newer errcheck also reports the unchecked error received from cmdDone in sigterm_test.go, so log it. --- .github/workflows/lint.yml | 2 +- lambda/sigterm_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 501977b1..010080bc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,4 +23,4 @@ jobs: - name: golangci-golint uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9 with: - version: v2.13.1 + version: v2.15.0 diff --git a/lambda/sigterm_test.go b/lambda/sigterm_test.go index ef86db16..1a93161a 100644 --- a/lambda/sigterm_test.go +++ b/lambda/sigterm_test.go @@ -134,7 +134,7 @@ func TestEnableSigterm(t *testing.T) { assert.Equal(t, "Task timed out after 4.00 seconds", string(body)) _ = cmd.Process.Kill() - <-cmdDone + t.Logf("rie exited: %v", <-cmdDone) <-logDone logs := logBuf.String()