From 4f0773998faa0f43bf9601e6f77bd48288e21080 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 4 Oct 2026 22:27:45 +0200 Subject: [PATCH] ci: pin Go 1.27.1 instead of `stable` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `stable` is a channel, not a version, so the toolchain moved here with no commit: CI has been building and running on go1.27.1 while go.mod said otherwise, and a MINOR Go bump is the one that reindents under gofmt and changes coverage block counting. It also kept the shared Renovate rule from ever firing. That rule matches dep name `go` under the `gomod` and `github-actions` managers with `automerge: false`, citing golang/go#81000 — and an alias has no version to compare or rewrite. Pinning is what makes the review rule apply at all. Co-Authored-By: Claude Opus 5 --- .github/workflows/ci.yml | 8 ++++---- go.mod | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9690800..14299be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: - go-version: stable + go-version: '1.27.1' - if: runner.os != 'Windows' uses: ruby/setup-ruby@v1 with: @@ -60,7 +60,7 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: - go-version: stable + go-version: '1.27.1' - run: go env GOARCH && go test ./... arch-qemu: @@ -78,7 +78,7 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: - go-version: stable + go-version: '1.27.1' - run: sudo apt-get update && sudo apt-get install -y qemu-user-static - name: Test under qemu (${{ matrix.goarch }}) run: GOARCH=${{ matrix.goarch }} go test -exec=${{ matrix.qemu }} ./... @@ -94,6 +94,6 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: - go-version: stable + go-version: '1.27.1' - name: Build ${{ matrix.goos }}/wasm run: GOOS=${{ matrix.goos }} GOARCH=wasm go build ./... diff --git a/go.mod b/go.mod index e991450..9747327 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/go-ruby-optparse/optparse -go 1.26.4 +go 1.27.1