Repository navigation
chore: golangci-lint を v2.14.0 に更新 - #20
Merged
Merged
Conversation
Go 1.27.2 export data is incompatible with v2.13.2. v2.14.0 lints cleanly on the CI floor (1.20) and latest stable (1.27.2).
dc7290
marked this pull request as ready for review
October 15, 2026 01:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
開発用 golangci-lint を v2.14.0 に更新し、Go 1.27.2 上での lint 失敗を解消します。
go.modのgo 1.17は変えていません。実行時依存の追加・更新もありません。背景
Go 1.27.2(2026-10-08)では、標準ライブラリの export data が version 5 になりました。CI の lint ジョブは
go-version: stableなので、現行の golangci-lint v2.13.2(go1.27.0 ビルド、対応上限は version 4)は typecheck で失敗します。これは依存更新前から再現する失敗で、修正はツール本体の更新です。ソース変更は不要なため、別 PR に分ける対象はありません。更新内容
versionv2.13.2 → v2.14.0.devcontainer/devcontainer.jsonのgolangciLintVersion2.13.2 → 2.14.0golangci/golangci-lint-action本体の更新はしていませんv2.14.0(2026-09-23)の Changelog に Breaking Changes や設定移行はありません。中身は linter のバグ修正と機能追加です。このリポジトリに
.golangci.ymlはなく、設定の新設や緩和はしていません。見送り
github.com/stretchr/testifyは既に最新の v1.12.1goディレクティブ(go 1.17)とtoolchain1.27.xで、安定版の新メジャー(Go 1.28)は未公開version: none検証
更新前の
mainで、Go 1.27.2 と golangci-lint v2.13.2 の組み合わせだけが失敗しました。go mod tidyの差分、go build、go testは Go 1.20.14 と Go 1.27.2 の両方で成功していました。更新後、Go 1.20.14(CI 下限)と Go 1.27.2(安定版の最新パッチ)で次を実行し成功しました。
go mod downloadgo mod tidy(意図しないgo.mod/go.sum差分なし)go build -v ./...go test -v ./...