Bump Go to 1.19 (#6586)

* Set Go version in go.mod

go mod edit -go=1.19

* Fix formatting issues reported by gofmt

* Fix SA1019 check (usage of deprecated "io/ioutil"), reported by golangci-lint

SA1019: "io/ioutil" has been deprecated since Go 1.16:
As of Go 1.16, the same functionality is now provided by package io or package os,
and those implementations should be preferred in new code.
See the specific function documentation for details. (staticcheck)

* Use Go 1.19 in our Dockerfiles

* Use Go 1.19 in the rpm-prepare.sh script

* Update the tag for the IBM Cloud CI image
This commit is contained in:
Armel Soro
2023-02-16 15:03:48 +01:00
committed by GitHub
parent 2460ea83da
commit 7b9f214299
30 changed files with 104 additions and 95 deletions

View File

@@ -15,8 +15,8 @@ export ODO_RPM_VERSION
# Golang version variables, if you are bumping this, please contact redhat maintainers to ensure that internal
# build systems can handle these versions
export GOLANG_VERSION=${GOLANG_VERSION:-1.18}
export GOLANG_VERSION_NODOT=${GOLANG_VERSION_NODOT:-118}
export GOLANG_VERSION=${GOLANG_VERSION:-1.19}
export GOLANG_VERSION_NODOT=${GOLANG_VERSION_NODOT:-119}
# Print env for verification
echo "Printing envs for verification"