From 77a268d273ba11ba448be027bfa0b7fdcdeb219b Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 8 Nov 2026 20:37:38 +0100 Subject: [PATCH] Pin gopls modernize to v0.23.0 gopls v0.24.0 (now @latest) requires Go 1.27 and dropped the cmd/modernize package path, breaking the analysis job on every run. Pin to v0.23.0, the newest release that still ships the command; it reports no findings on the checked packages. --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 13888c0..1ab6292 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -66,7 +66,7 @@ jobs: # generated parsers/scanners are excluded (as in gofmt) - name: gopls modernize - run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest ./pkg/... ./internal/position/... + run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.23.0 ./pkg/... ./internal/position/... - uses: golangci/golangci-lint-action@v8 if: ${{ !cancelled() }}