Skip to content

Upgrade to Go 1.26 + golangci-lint 2.13.1 - #54

Merged
bgentry merged 2 commits into
masterfrom
bg/modernize-ci-go-1.27
Sep 1, 2026
Merged

Upgrade to Go 1.26 + golangci-lint 2.13.1#54
bgentry merged 2 commits into
masterfrom
bg/modernize-ci-go-1.27

Conversation

@bgentry

@bgentry bgentry commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

The rivershared v0.45 update raises its Go requirement, exposing that CI's pinned golangci-lint 2.4 binary was built with an older Go release and exits before linting. Declare Go 1.26 as the library minimum while running lint with stable Go and golangci-lint 2.13.1, matching the current River pattern without forcing Go 1.27 onto riverapi or riverui.

Upgrade checkout, Go setup, and golangci-lint actions to versions that use a supported Node runtime, removing the Node 20 deprecation warning. Apply the lint configuration migrations and Go modernizations required by the newer suite, including explicit contexts for HTTP test requests.

@bgentry
bgentry requested a review from brandur September 1, 2026 00:32
The rivershared v0.45.0 update raises its module minimum to Go 1.26,
above the version used to build the pinned golangci-lint binary. Lint
therefore exits before analyzing code.

Declare Go 1.26 as the library minimum and use stable Go with
golangci-lint 2.13.1, matching the current River pattern. Upgrade the
supporting GitHub Actions to their current major versions so they run on
a supported Node runtime instead of GitHub's Node 20 fallback.
@bgentry
bgentry force-pushed the bg/modernize-ci-go-1.27 branch from 8623ff0 to 1f857ae Compare September 1, 2026 01:12
@bgentry bgentry changed the title Upgrade CI toolchain to Go 1.27 Upgrade to Go 1.26 + golangci-lint 2.13.1 Sep 1, 2026
The newer lint suite introduces replacement linters for existing policy
choices and enables additional checks through `default: all`. Preserve the
intent of the exhaustive-struct policy, switch away from deprecated linter
aliases, and avoid noisy repeated-literal and whitespace churn.

Apply the useful Go modernization fixes emitted by the updated linter.
Adopt typed error and reflection helpers, standard-library iterators and
pointer expressions, efficient string construction, promoted embedded
fields, and context-aware test requests.
@bgentry
bgentry merged commit 2030400 into master Sep 1, 2026
5 checks passed
@bgentry
bgentry deleted the bg/modernize-ci-go-1.27 branch September 1, 2026 06:08
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.

2 participants