go.mod: 宣言バージョンをCI実態に合わせ go 1.21 に更新 (#21)#26
Merged
Conversation
## 理由 go.mod が go 1.16 を宣言する一方、CI(.go-version)は 1.21.0 でビルド/テストして おり乖離していた(#21)。さらに全テストが t.Setenv(Go 1.17+)を使用しており、 1.16 ではテストがビルドできないため「1.16 サポート」は実態として成立していない。 宣言を、実際にテストしている最小バージョンへ揃える。 ## 修正点 - go ディレクティブを 1.16 -> 1.21 に更新(.go-version / CI と一致) - go mod tidy により間接依存(go-spew / go-difflib / yaml.v3)を明示し、 go.sum を整理(Go 1.17+ のモジュールグラフ刈り込みに対応)
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.
概要
go.mod の宣言バージョンを、CI で実際にビルド/テストしている版に揃えます。
Closes #21
背景
go 1.16を宣言する一方、CI(.go-version)は 1.21.0 でビルド/テスト → 宣言最小と実テスト版が乖離(go.mod: 宣言バージョン(go 1.16)とCI/.go-version(1.21.0)の乖離 #21)t.Setenv(Go 1.17+)を使用しており、go 1.16ではテストがそもそもビルドできない。よって「1.16 サポート」は実態として成立しておらず、issue の「1.16 マトリクス追加」案は実行不可能変更点
goディレクティブを 1.16 → 1.21(.go-version/ CI と一致)go mod tidyを実行し、間接依存(go-spew/go-difflib/yaml.v3)を明示。go.sumも整理(Go 1.17+ のモジュールグラフ刈り込みに対応)検証
go build/go vet(tidy 後)/go test/go test -raceすべて ✅go mod verify: all modules verified🤖 Generated with Claude Code