From 839a42b9a3e22b1f02fd137d99e4d8f9050b99a3 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 20 Oct 2026 22:45:56 +0200 Subject: [PATCH] Pin blink modernize analyzer to gopls v0.23.0 gopls v0.24.0 removed the modernize/cmd/modernize package path and requires Go >= 1.27, so the @latest run breaks the analysis job on every PR. Pin to v0.23.0, the last release that ships the command and builds with the Go version used in CI. --- .github/workflows/blink_tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blink_tests.yaml b/.github/workflows/blink_tests.yaml index 16192374eb..511071ab50 100644 --- a/.github/workflows/blink_tests.yaml +++ b/.github/workflows/blink_tests.yaml @@ -93,7 +93,8 @@ jobs: go-version: "1.26.9" - name: gopls modernize - run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest ./... + # pinned: gopls v0.24.0 dropped this cmd path and needs Go >= 1.27 + run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.23.0 ./... - uses: golangci/golangci-lint-action@v8 if: ${{ !cancelled() }}