Skip to content

chore: golangci-lint を v2.14.0 に更新 - #20

Merged
dc7290 merged 1 commit into
mainfrom
cursor/bc-16fef778-0627-40bc-bc1c-0350a32a484d-d0c4
Oct 15, 2026
Merged

dc7290 merged 1 commit into
mainfrom
cursor/bc-16fef778-0627-40bc-bc1c-0350a32a484d-d0c4

Conversation

@cursor

@cursor cursor Bot commented Oct 11, 2026

Copy link
Copy Markdown

開発用 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 に分ける対象はありません。

更新内容

  • CI の golangci-lint version v2.13.2 → v2.14.0
  • .devcontainer/devcontainer.json の golangciLintVersion 2.13.2 → 2.14.0
  • golangci/golangci-lint-action 本体の更新はしていません

v2.14.0(2026-09-23)の Changelog に Breaking Changes や設定移行はありません。中身は linter のバグ修正と機能追加です。このリポジトリに .golangci.yml はなく、設定の新設や緩和はしていません。

見送り

  • github.com/stretchr/testify は既に最新の v1.12.1
  • 実行時の第三者依存はない
  • go ディレクティブ(go 1.17)と toolchain
  • CI の Go マトリクス。上限は既に 1.27.x で、安定版の新メジャー(Go 1.28)は未公開
  • GitHub Actions 本体(Dependabot 担当)
  • devcontainer のベースイメージと Go feature の 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 download
  • go mod tidy(意図しない go.mod / go.sum 差分なし)
  • go build -v ./...
  • go test -v ./...
  • golangci-lint v2.14.0(0 issues)
Open in Web View Automation 

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
dc7290 marked this pull request as ready for review October 15, 2026 01:40
@dc7290
dc7290 merged commit 0734be7 into main Oct 15, 2026
18 checks passed
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