2021-09-14 06:56:25 +00:00
|
|
|
# Updating Golang version
|
|
|
|
|
|
|
|
## Update go.mod
|
|
|
|
|
|
|
|
`go mod edit -go=X.Y`
|
|
|
|
|
|
|
|
## Update CI
|
|
|
|
|
|
|
|
Change Golang versions for unit test in CI.
|
|
|
|
There is `go` section in `.github/workflows/go.yaml` file:
|
|
|
|
```yaml
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-08-15 16:28:30 +00:00
|
|
|
go: [ 'X.Y.x', 'X.Y.x', 'X.Y.x' ]
|
2021-09-14 06:56:25 +00:00
|
|
|
```
|
|
|
|
|
2022-08-15 16:28:30 +00:00
|
|
|
That section should contain three latest Golang minor versions.
|
2021-09-14 06:56:25 +00:00
|
|
|
|
|
|
|
## Update docker images
|
|
|
|
|
|
|
|
Update all docker files that contain `golang` image in `./docker`
|
|
|
|
directory.
|
|
|
|
|
|
|
|
## Update Makefile
|
|
|
|
|
|
|
|
Update `GO_VERSION` variable in `./Makefile`.
|
|
|
|
|
|
|
|
## Apply language changes
|
|
|
|
|
2023-03-02 10:56:11 +00:00
|
|
|
Open PR that fixes/updates repository's code according to
|
2021-09-14 06:56:25 +00:00
|
|
|
language improvements.
|