Skip to content

chore: testify を v1.12.1、golangci-lint を v2.13.2 に更新 - #18

Merged
nemuvski merged 3 commits into
mainfrom
cursor/go-7033
Sep 9, 2026
Merged

nemuvski merged 3 commits into
mainfrom
cursor/go-7033

Conversation

@cursor

@cursor cursor Bot commented Sep 9, 2026

Copy link
Copy Markdown

公開モジュールの互換性を維持しつつ、テスト専用依存と開発用 golangci-lint を更新します。

go.mod の go 1.17 は変えていません。実行時依存の追加・更新もありません。

更新内容

  • github.com/stretchr/testify v1.11.1 → v1.12.1
    • v1 維持方針のため Breaking Changes なし
    • 間接依存: gopkg.in/yaml.v3 から go.yaml.in/yaml/v3 v3.0.5 へ。go-spew / go-difflib は testify 側で vendor 化
    • このリポは require のみ使用。テストコードの変更は不要
    • testify の go.mod は go 1.17 のまま。CI 下限 1.20.x と両立
  • CI の golangci-lint version v2.8.0 → v2.13.2
    • v2 系列のまま。このリポに .golangci.yml はなく、設定の新設や緩和はしていない
    • v2.13.0 で go1.27 対応
  • ioutil.ReadAll → io.ReadAll
    • v2.13.2 の govet inline が、Go 1.27 ツールチェーン上で ioutil.ReadAll を指摘
    • io.ReadAll は Go 1.16+ の正式置換で、公開 API は変更なし

見送り

  • 公開モジュールの go ディレクティブ / toolchain / 実行時依存
  • GitHub Actions 本体(Dependabot 担当)
  • CI への Go 1.27.x 追加は独立 PR

検証

更新前の main に既存失敗はなかった。更新後は Go 1.20.14(CI 下限)、1.26.8(当時の CI 最新系列)、1.27.1 で次を実行し成功しました。

  • go mod download
  • go mod tidy(意図しない差分なし)
  • go build ./...
  • go test ./...
  • golangci-lint v2.13.2
Open in Web View Automation 

Keep the public module go 1.17 line unchanged. Refresh the test-only
testify dependency and the CI-pinned golangci-lint version.
govet's inline analyzer in golangci-lint v2.13 flags ioutil.ReadAll
when analyzed with a newer Go toolchain. io.ReadAll is the Go 1.16+
replacement and keeps go.mod at 1.17.
@nemuvski
nemuvski marked this pull request as ready for review September 9, 2026 00:17
@nemuvski
nemuvski merged commit bdd1a7c into main Sep 9, 2026
17 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