From 0661bc2cfe3d532450faab4a59bffa2269f85993 Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Tue, 1 Sep 2026 08:03:57 -0700 Subject: [PATCH] CI: format generic methods with stable Go Go 1.26 cannot parse generic methods, even in files excluded by build constraints. Run the formatting check only with stable Go 1.27 while continuing to test oldstable. --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a92ed203e..11c1d852f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,7 @@ jobs: go-version: ${{ matrix.go_version }} - run: ./.ci.gogenerate.sh - run: ./.ci.gofmt.sh + if: matrix.go_version == 'stable' - run: ./.ci.govet.sh - run: go test -v -race ./...