pipe-cd / pipecd

The One CD for All {applications, platforms, operations}

Home Page:https://pipecd.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update to Go 1.22

ffjlabo opened this issue · comments

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

Cursor_と_All_releases_-_The_Go_Programming_Language

Why is this needed:

After Go 1.22, we don't need to consider the loop var scope.
https://go.dev/blog/loopvar-preview

I updated the TODO above.
These are based on the investigation of the github action workflow definitions and previous PRs for updating go version.

workflow definitions: .github/workflows/*

to 1.20.3

to 1.19