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

@@ -1,5 +1,5 @@
# Dockerfile to bootstrap build and test in openshift-ci
FROM registry.ci.openshift.org/openshift/release:golang-1.18
FROM registry.ci.openshift.org/openshift/release:golang-1.19
RUN yum -y install make wget gcc git httpd-tools