From 5ff9a443d6c9594ba49dc55cb86d74cc459af799 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 27 Oct 2026 16:22:19 +0000 Subject: [PATCH] Update golangci-lint version to v2.15 mop-reporting's `make lint` runs fine locally but fails in CI: > Error: main.go:3:8: could not import os (/opt/hostedtoolcache/go/1.27.3/x64/src/os/dir.go:8:2: could not import internal/bytealg (/opt/hostedtoolcache/go/1.27.3/x64/src/internal/bytealg/bytealg.go:8:2: could not import internal/cpu (-: could not load export data: internal error in importing "internal/cpu" (cannot decode "internal/cpu", export data version 5 is greater than maximum supported version 4); please report an issue))) (typecheck) mod-reporting's CI lint job (go-lint.yml) calls the shared lint workflow in folio-org/.github. That workflow's golangci-lint step, .github/workflows/go-lint-golangci.yml@v1, does two relevant things: * actions/setup-go with go-version: 'stable', which now installs Go 1.27.3 (the version in your error). * golangci/golangci-lint-action@v9 with version: v2.13, which resolves to v2.13.2. The 1.27.3 standard library is compiled in a newer internal format, version 5. golangci-lint reads that format through Go's golang.org/x/tools package, which added support for version 5 on 2026-09-02. So we need a newer version of golangci-lint which understands that format. --- .github/workflows/go-lint-golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-lint-golangci.yml b/.github/workflows/go-lint-golangci.yml index 801ee00..a751990 100644 --- a/.github/workflows/go-lint-golangci.yml +++ b/.github/workflows/go-lint-golangci.yml @@ -25,6 +25,6 @@ jobs: uses: golangci/golangci-lint-action@v9 with: # The golangci-lint version - version: v2.13 + version: v2.15 args: --config=${{ inputs.golangci-config-file }} --disable errcheck --disable staticcheck --enable gosec