From ce3169772c4d79daa92c21ef578bbcc3b061ed99 Mon Sep 17 00:00:00 2001 From: staebler Date: Fri, 17 Dec 2021 17:01:36 -0500 Subject: [PATCH] hack: use go 1.17 for verifying codegen The hack/verify-codegen.sh script was using an image that included go 1.16. However, the updated k8s.io/json module calls the `(reflect.StructField) IsExported` function, which is new in go 1.17. Consequently, the script needs to be updated to use an image that include go 1.17 rather than 1.16. --- hack/verify-codegen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-codegen.sh b/hack/verify-codegen.sh index 14f4a4500f..97434f9111 100755 --- a/hack/verify-codegen.sh +++ b/hack/verify-codegen.sh @@ -10,6 +10,6 @@ else --env IS_CONTAINER=TRUE \ --volume "${PWD}:/go/src/github.com/openshift/installer:z" \ --workdir /go/src/github.com/openshift/installer \ - docker.io/openshift/origin-release:golang-1.16 \ + docker.io/golang:1.17 \ ./hack/verify-codegen.sh "${@}" fi