From 34199dd7783dde061de54527b4f98350481f9c27 Mon Sep 17 00:00:00 2001 From: Paolo Fabbri Date: Sat, 4 Jul 2026 16:20:26 +0100 Subject: [PATCH] ci: lint with go vet, pin Go from go.mod The build was failing on every PR: golangci-lint (latest, built on go1.24) refuses to lint a module targeting go1.25, and setup-go was pinned to a stale 1.23.0. Switch the lint step to `go vet` (matching the Makefile/AGENTS.md lint command) and read the Go version from go.mod so it can't drift again. Bump the deprecated actions/cache@v3 to v4. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01XmZfFD3t4UYB7TKstGj8QP --- .github/workflows/go.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a4d5b02..0987c81 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - name: Cache Go modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/go-build @@ -31,14 +31,12 @@ jobs: ${{ runner.os }}-go-modules- - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: "1.23.0" + go-version-file: "go.mod" - - name: Lint with golangci-lint-action - uses: golangci/golangci-lint-action@v4 - with: - version: latest + - name: Vet + run: go vet ./... - name: Build run: go build -v ./...