Skip to content

update: go version v1.22 -> v1.26#48

Merged
KenFujimoto12 merged 3 commits intodevelopfrom
feat/go-version-up-to-v-1-26
Mar 25, 2026
Merged

update: go version v1.22 -> v1.26#48
KenFujimoto12 merged 3 commits intodevelopfrom
feat/go-version-up-to-v-1-26

Conversation

@KenFujimoto12
Copy link
Copy Markdown
Collaborator

@KenFujimoto12 KenFujimoto12 commented Mar 19, 2026

Summary

Go のバージョンを 1.22 から 1.26.1 へアップグレードします。

Changes

  • go.mod: go 1.22go 1.26.1
  • Dockerfile: golang:1.22.1-bookwormgolang:1.26.1-bookworm
  • Dockerfile.local: golang:1.22.1-bookwormgolang:1.26.1-bookworm
  • .github/workflows/ci.yml: go-version: 1.22.1go-version: 1.26.1

Investigation

Go 1.26 へのアップグレードにあたり、以下のディレクトリ配下のソースコード全体を調査しました。

  • /application
  • /cmd
  • /compose
  • /config
  • /interfaces
  • /pkg
  • /usecases

調査観点:

  • 廃止・削除された標準パッケージの使用(io/ioutil 等)
  • 非推奨 API の使用
  • ビルドタグの形式
  • その他 Go 1.23〜1.26 との非互換性

結果:ソースコードへの修正は不要であることを確認しました。

Test plan

  • go mod tidy を実行し、依存関係に差分がないことを確認
  • go build ./... が成功することを確認
  • go test --tags=test ./... が成功することを確認
  • CI が通ることを確認

@KenFujimoto12 KenFujimoto12 marked this pull request as draft March 19, 2026 08:33
Comment thread .github/workflows/ci.yml Outdated
uses: actions/setup-go@v5.0.0
with:
go-version: 1.22.1
go-version: 1.26.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://go.dev/doc/devel/release#policy

1.26.1 がいいですね!

@KenFujimoto12
Copy link
Copy Markdown
Collaborator Author

イメージのビルドには成功している

$ make build-image
$ make build-image-for-local

@KenFujimoto12 KenFujimoto12 marked this pull request as ready for review March 25, 2026 08:30
@KenFujimoto12 KenFujimoto12 merged commit a06244f into develop Mar 25, 2026
1 check failed
@KenFujimoto12 KenFujimoto12 deleted the feat/go-version-up-to-v-1-26 branch March 25, 2026 08:35
@KenFujimoto12 KenFujimoto12 mentioned this pull request Mar 26, 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.

2 participants