From 278a031f2c8db52d3ad0469a48a1bf08c7bdf03c Mon Sep 17 00:00:00 2001 From: Theo Gravity Date: Sat, 2 May 2026 23:49:16 -0700 Subject: [PATCH] fix(ci): install Go 1.25 before monorel for release-pr / release monorel v0.12+ runs `go mod tidy` per sub-module as part of `pr` and `release` to refresh go.sum entries. Every sub-module's go.mod requires `go 1.25.0`, but the GitHub runner default is older and the monorel CI action sets GOTOOLCHAIN=local, so the toolchain doesn't auto-upgrade. The tidy step then fails with: go: go.mod requires go >= 1.25.0 (running go 1.24.13; GOTOOLCHAIN=local) This bit the release-pr workflow when it ran on PR #76's merge commit because monorel's `latest` tag had moved past v0.11.0 between PR #74's release (v0.10.x) and PR #76's release (v0.13.0). The action version is pinned (`@v0.11.0`), but the action invokes the binary under `latest`. Add an `actions/setup-go@v5` step with `go-version: '1.25'` before the monorel invocation in both release-pr.yml and release.yml. Mirrors the setup-go pattern that ci.yml already uses for the regular CI matrix. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/release-pr.yml | 8 ++++++++ .github/workflows/release.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 30e336e..dabdf5d 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -33,6 +33,14 @@ jobs: with: fetch-depth: 0 + # The monorel CI action runs `go mod tidy` per sub-module to refresh + # go.sum entries. Sub-modules require Go 1.25; the runner default is + # older and the action sets GOTOOLCHAIN=local, so install the Go we + # need explicitly before invoking monorel. + - uses: actions/setup-go@v5 + with: + go-version: '1.25' + - uses: disaresta-org/monorel/ci/github@v0.11.0 with: command: pr diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2475dbc..fb6e675 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,14 @@ jobs: with: fetch-depth: 0 + # The monorel CI action runs `go mod tidy` per sub-module to refresh + # go.sum entries. Sub-modules require Go 1.25; the runner default is + # older and the action sets GOTOOLCHAIN=local, so install the Go we + # need explicitly before invoking monorel. + - uses: actions/setup-go@v5 + with: + go-version: '1.25' + - uses: disaresta-org/monorel/ci/github@v0.11.0 with: command: release