Skip to content

build: use go1.27.3 toolchain for CI and release - #81

Merged
buty4649 merged 2 commits into
mainfrom
go-toolchain-1.27.3
Oct 29, 2026
Merged

buty4649 merged 2 commits into
mainfrom
go-toolchain-1.27.3

Conversation

@buty4649

@buty4649 buty4649 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

なぜこの変更を行うのか

CI とリリースは actions/setup-go の go-version-file: go.mod で Go のバージョンを決めていますが、go.mod には go 1.26.1 しか指定がないため、リリースバイナリが Go 1.26.1 でビルドされていました。Go 1.27.3 でリリースできるよう、go.mod に toolchain go1.27.3 を追加します。

go ディレクティブ(利用者に求める最低バージョン)は 1.26.1 のまま据え置いています。

また、golangci-lint v2.11.3 は Go 1.26 でビルドされており、Go 1.27.3 を対象にすると the Go language version (go1.26) used to build golangci-lint is lower than the targeted Go version (1.27.3) で失敗するため、Go 1.27 に対応した v2.15.0 に更新しています。

変更内容

  • go.mod に toolchain go1.27.3 を追加
  • CI の golangci-lint を v2.11.3 → v2.15.0 に更新

レビューポイント

  • actions/setup-go v7 が toolchain ディレクティブを優先して Go 1.27.3 をインストールしているか(この PR の CI ログで Successfully set up Go version 1.27.3 を確認済み。リリースワークフローも同じ設定です)
  • go ディレクティブを据え置き、toolchain のみ指定する方針でよいか
  • golangci-lint の更新で新たに有効になった検査による影響がないか(CI は通過済み)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@buty4649 buty4649 self-assigned this Oct 29, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@buty4649
buty4649 merged commit 996b9ec into main Oct 29, 2026
2 checks passed
@buty4649
buty4649 deleted the go-toolchain-1.27.3 branch October 29, 2026 02:37
@pepabo-pr-maker pepabo-pr-maker Bot mentioned this pull request Oct 29, 2026
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