From cd9644b6cef23d38c103913aee897086c4836c41 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Oct 2026 06:38:51 +0000 Subject: [PATCH] build(ci): upgrade Go 1.26 to 1.27.1 Bump the go directive to 1.27.1, the latest stable release, and have both workflows read the version from go.mod (matching the server) so CI cannot drift from the module again. Mockery v3.5.0 bundles golang.org/x/tools v0.33.0, which cannot load packages for a go 1.27 module ("package without types was imported"). Bump it to v3.7.4, the version the server already runs on Go 1.27.1. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016nCMzAhia8nSVTafQzYZcr --- .github/workflows/pr-check.yaml | 4 ++-- .github/workflows/release.yaml | 4 ++-- AGENTS.md | 2 +- CLAUDE.md | 2 +- go.mod | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index 0301a63..8066b54 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -25,7 +25,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.26" + go-version-file: go.mod - name: Cache Go modules uses: actions/cache@v4 @@ -50,7 +50,7 @@ jobs: - name: Generate mocks run: | - go install github.com/vektra/mockery/v3@v3.5.0 + go install github.com/vektra/mockery/v3@v3.7.4 mockery - name: Run tests with coverage diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3e78e2a..66b8bd3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,7 +26,7 @@ jobs: - run: git fetch --force --tags - uses: actions/setup-go@v5 with: - go-version: "1.26" + go-version-file: go.mod - uses: PromptPal/github-action@v1.0.3 env: PROMPTPAL_ENDPOINT: ${{ secrets.PROMPTPAL_ENDPOINT }} @@ -38,7 +38,7 @@ jobs: - name: Generate run: | echo "GH_TAG=$(echo $GITHUB_REF | awk -F / '{print $3}')" >> $GITHUB_ENV - go install github.com/vektra/mockery/v3@v3.5.0 + go install github.com/vektra/mockery/v3@v3.7.4 mockery - name: Test run: go test -timeout 3m -coverprofile=coverage.txt -covermode=atomic ./... diff --git a/AGENTS.md b/AGENTS.md index 27db759..acd72ff 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -32,7 +32,7 @@ Keep new code inside the existing package boundary. Do not mix CLI wiring, daemo - `mockery`: regenerate mocks when interfaces change - `pp g`: regenerate PromptPal-generated artifacts when relevant -Use Go 1.26, as declared in `go.mod`. +Use Go 1.27.1, as declared in `go.mod`. ## Coding Style & Naming Conventions Use standard Go conventions and keep code `gofmt`-clean. diff --git a/CLAUDE.md b/CLAUDE.md index 3c8e6e8..1d9285b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,7 +10,7 @@ ShellTime CLI is a Go-based command-line tool for tracking DevOps work. It consi ## Development Commands -**Requires Go 1.26+** +**Requires Go 1.27.1+** ### Building ```bash diff --git a/go.mod b/go.mod index f4b1267..649675a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/malamtime/cli -go 1.26 +go 1.27.1 require ( github.com/ThreeDotsLabs/watermill v1.5.1