Skip to content

ci: let the golangci-lint install fetch the Go it needs - #34

Merged
CameronBrooks11 merged 1 commit into
mainfrom
ci/lint-toolchain
Nov 11, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
ci/lint-toolchain

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

golangci-lint v2.13.1 requires Go 1.26, and go.mod says 1.23. setup-go v5 left GOTOOLCHAIN at auto, so go install quietly fetched a newer toolchain. setup-go v6 and later set GOTOOLCHAIN=local, and on the setup-go 7 bump (#29) the install fails: 'requires go >= 1.26.0 (running go 1.23.12; GOTOOLCHAIN=local)'. Tests and integration pass there; only this step breaks. Setting GOTOOLCHAIN=auto on that one step restores the old behaviour, and tests stay on go.mod's minimum. On setup-go v5 this is already the default, so it changes nothing until #29 merges.

golangci-lint v2.13.1 requires Go 1.26; go.mod says 1.23. setup-go v5
left GOTOOLCHAIN at auto, so go install fetched a newer toolchain;
setup-go v6+ sets GOTOOLCHAIN=local and the install fails:
"requires go >= 1.26.0 (running go 1.23.12; GOTOOLCHAIN=local)" (seen
on the setup-go 7 bump, #29). Setting auto on that step only keeps
tests on go.mod's minimum.
@CameronBrooks11
CameronBrooks11 merged commit 9ca5a25 into main Nov 11, 2026
6 checks passed
@CameronBrooks11
CameronBrooks11 deleted the ci/lint-toolchain branch November 11, 2026 02:11
CameronBrooks11 added a commit that referenced this pull request Nov 11, 2026
Applies Dependabot's #28 (checkout 4 to 7) and #29 (setup-go 5 to 7).
Both PRs stopped picking up rebased heads: their branches moved, but the
PRs kept their old heads, so no checks ran. GitHub status showed no
incident. Once this merges, Dependabot should close them as already
applied.

setup-go v6 and later pin GOTOOLCHAIN=local, which broke the
golangci-lint install. #34 fixed that, and this PR's Check job is the
first run of that fix on setup-go v7. The release workflow (checkout and
setup-go in release.yml) only runs on a tag, so the next release is its
first run on these versions.
CameronBrooks11 added a commit that referenced this pull request Nov 11, 2026
Prepares v0.3.1: the version constant becomes 0.3.1, and the CHANGELOG's
Unreleased section becomes 0.3.1. User-facing change since v0.3.0: #36
(push reports titles that aren't tracked, #24). CI action updates since
then: #27, #30, #31, #34, #35. This tag is the first run of the updated
release workflow (goreleaser-action 7, checkout 7, setup-go 7). The tag
is pushed after this merges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant