Update to Go 1.22
ffjlabo opened this issue · 1 comments
ffjlabo commented
What would you like to be added:
TODO:
- Update the base image of Dockerfiles and go.mod in
tools/
- actions-gh-release
- actions-plan-preview
- codegen
- Update the base image of Dockerfiles in
docs/
- Update go version in docs document.
- Update env.GO_VERSION in github actions workflow definitions.
- test.yaml
- publish_image_chart.yaml
- publish_binary.yaml
- lint.yaml
- test_tool.yaml
- build.yaml
- Update go.mod in the root of the repo.
memo
- docker image: golang:1.22.3-alpine3.19 https://hub.docker.com/layers/library/golang/1.22.3-alpine3.19/images/sha256-a52ec26b648564b6cef8adf7bea14348b499a32d08de3943823150ad268f0d77?context=explore
- current go's stable version: 1.22.3 https://go.dev/dl/
Why is this needed:
After Go 1.22, we don't need to consider the loop var scope.
https://go.dev/blog/loopvar-preview