Skip to content

Bump golang dependency to 1.19 #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

rhmdnd
Copy link
Contributor

@rhmdnd rhmdnd commented Mar 2, 2023

We were using 1.16, which ended support 11 months ago. Let's update the
version of go we use and also update the dependencies we use (fixing
vulnerabilities caught by dependabot).

You can verify the contents of this commit using:

$ make clean // bump go version in go.mod
$ go get -u all // fix resolution issues manually
$ go mod go_mod
$ go mod vendor

@openshift-ci openshift-ci bot requested review from Vincent056 and xiaojiey March 2, 2023 04:13
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 2, 2023
@rhmdnd
Copy link
Contributor Author

rhmdnd commented Mar 2, 2023

Bumping golang version for CI here - openshift/release#36861

@rhmdnd
Copy link
Contributor Author

rhmdnd commented Mar 2, 2023

/retest

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 2, 2023
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 2, 2023
Copy link
Contributor

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI saves the day:

Pulling image registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.17-openshift-4.10 ...
Trying to pull registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.17-openshift-4.10...
Getting image source signatures
...

and then:

go build -o build/controller-gen ./vendor/sigs.k8s.io/controller-tools/cmd/controller-gen
# k8s.io/apimachinery/third_party/forked/golang/reflect
vendor/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go:376:7: undefined: reflect.Pointer
note: module requires Go 1.19
# k8s.io/apimachinery/pkg/util/set

so it looks like we also need to update Dockerfile.ci and tell it to use rhel-8-release-golang-1.19-openshift-4.12 instead?

We were using 1.16, which ended support 11 months ago. Let's update the
version of go we use and also update the dependencies we use (fixing
vulnerabilities caught by dependabot).

You can verify the contents of this commit using:

  $ make clean // bump go version in go.mod
  $ go get -u all  // fix resolution issues manually
  $ go mod go_mod
  $ go mod vendor
@rhmdnd
Copy link
Contributor Author

rhmdnd commented Mar 2, 2023

so it looks like we also need to update Dockerfile.ci and tell it to use rhel-8-release-golang-1.19-openshift-4.12 instead?

Aha - good call. I forgot about that hook.

Thanks!

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2023

@rhmdnd: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 3, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhrozek, rhmdnd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit ea16e45 into openshift:master Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants