Skip to content

chore(deps): refresh all dependencies and modernize toolchain#152

Merged
toshi0607 merged 1 commit into
masterfrom
deps-refresh-2026-07
Jul 19, 2026
Merged

chore(deps): refresh all dependencies and modernize toolchain#152
toshi0607 merged 1 commit into
masterfrom
deps-refresh-2026-07

Conversation

@toshi0607

Copy link
Copy Markdown
Owner

What

3年分放置されていた依存を一括更新し、あわせて古いツールチェインを最新化。

依存更新 (go get -u ./... + go mod tidy)

  • cloud.google.com/go 0.71.0 → 0.123.0
  • cloud.google.com/go/storage 1.12.0 → 1.63.1
  • cloud.google.com/go/logging 1.1.2 → 1.19.0
  • github.com/google/go-cmp 0.5.3 → 0.7.0
  • go directive 1.14 → 1.25

ツールチェイン / コード

  • tools/tools.go(golangci-lint を module 依存として pin する旧パターン)を削除。リンタは golangci-lint-action / ローカルバイナリから供給されるため、巨大な依存ツリーを module から排除。
  • .golangci.yml を golangci-lint v2 形式へ移行し、検出された staticcheck 指摘をすべて修正:
    • genproto の monitoring/v3secretmanager/v1cloud.google.com/go/.../...pb(非推奨解消、型は同一)へ
    • io/ioutilio/osgolang.org/x/net/context → 標準 context
    • message.Build: tagged switch 化、fmt.Fprintf
  • CI (ci.yaml): checkout@v4setup-go@v5 + go-version-file: go.modgolangci-lint-action@v8 (v2.11.3)、依存取得を go mod download

Verify (ローカル、Go 1.26)

  • go build ./... = 0 / make build.c make build.v = 0
  • go vet ./... = 0
  • go test ./... -short (= make test.s) = 0
  • golangci-lint run ./... = 0 issues (v2.11.3)

置き換える Dependabot PR

🤖 Generated with Claude Code

- go get -u ./... + go mod tidy; bump go directive to 1.25
  - cloud.google.com/go 0.71.0 -> 0.123.0
  - cloud.google.com/go/storage 1.12.0 -> 1.63.1
  - cloud.google.com/go/logging 1.1.2 -> 1.19.0
  - github.com/google/go-cmp 0.5.3 -> 0.7.0
- drop tools/tools.go (obsolete golangci-lint module-pin pattern); the
  linter now comes solely from golangci-lint-action / the local binary
- migrate .golangci.yml to golangci-lint v2 config and fix all findings:
  - genproto monitoring/v3 & secretmanager/v1 -> cloud.google.com/go apiv pb
  - io/ioutil -> io/os; golang.org/x/net/context -> context
  - message.Build: tagged switch + fmt.Fprintf
- CI: checkout@v4, setup-go@v5 (go-version-file), golangci-lint-action@v8,
  go mod download

Supersedes stale Dependabot PRs #151, #150, #147, #146, #131.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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