-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Update to Go 1.19 #4877
Update to Go 1.19 #4877
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: KnVerey 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 |
@@ -19,7 +19,7 @@ jobs: | |||
- name: Set up Go 1.x | |||
uses: actions/setup-go@v3 | |||
with: | |||
go-version: ^1.18 | |||
go-version: '^1.19.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .0
addition should allow patch version updates but prevent CI from bumping itself up a minor version without us explicitly changing this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the latest version is go1.19.3.
If you don't have any reason, Could you consider using the latest minor version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, Sorry.
I didn't know that. Thank you for showing the details!
@@ -3,6 +3,7 @@ | |||
|
|||
run: | |||
deadline: 5m | |||
go: '1.19' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pinning as suggested by Anna
@KnVerey: This PR has multiple commits, and the default merge method is: merge. 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. |
@@ -85,7 +85,7 @@ End-of-message | |||
`Dockerfile` installs `kustomize fn` and copies the script into the container image. | |||
|
|||
``` | |||
FROM golang:1.18-stretch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comments. Good to know as well (like the ^
thing)
Fix for presubmit failure: kubernetes/test-infra#28043 |
/test kustomize-presubmit-master |
I think the below 2 files are using
|
Oh, nice call. Besides, @KnVerey shall we consider using the distroless ("gcr.io/distroless/static") image to replace ln 132 |
I compared this PR with @koba1t 's go1.18 PR #4699. That PR touches the following
that this PR doesn't. Do we want to change Also, I'm assuming, since all checks passed, that we didn't change any My understanding of the touched files is rather basic, so feel free to ignore any uninformed comments. Really appreciate this PR! |
Thanks for the sanity checks! I had indeed missed a bunch of places.
I'm not opposed to reconsidering the images we use in various places (often in examples where distroless would be just fine, or where pinning a specific version of Go really isn't necessary), but it is out of scope for this PR. |
/lgtm |
/cc @koba1t @annasong20
mod files updated via
./hack/for-each-module.sh 'sed -i "" "s/go 1.18/go 1.19/g" go.mod'