-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
⚠️ Bump to Go 1.13 #606
⚠️ Bump to Go 1.13 #606
Conversation
Hi @joelanford. Thanks for your PR. I'm waiting for a kubernetes-sigs or kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test In order for the tests to use go 1.13, the image needs to be bumped here: https://github.com/kubernetes/test-infra/blob/e0a1e8e0d0f947087e7b8295f49b21d772f7a070/config/jobs/kubernetes-sigs/controller-runtime/controller-runtime-presubmits.yaml#L13 |
(removed my at-mention from the PR description -- that causes all sorts of issues when it merges) |
hack/check-everything.sh
Outdated
@@ -70,7 +70,7 @@ function fetch_go_tools { | |||
header_text "Checking for gometalinter.v2" | |||
if ! is_installed golangci-lint; then | |||
header_text "Installing golangci-lint" | |||
GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/[email protected] | |||
go get github.com/golangci/golangci-lint/cmd/[email protected] |
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.
I know this isn't changing current behavior, but maybe this tool should be installed with GO111MODULE=off
? The current version will add this as a dependency to go.mod
cluttering the file. We don't really want to carry a lint tool as a dependency and someone might accidentally commit it.
Related golang/go#30515
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.
I agree that it isn't great to clutter and inadvertantly change go.mod
. The GO111MODULE=off
approach doesn't work though:
$ ./hack/check-everything.sh
using tools
Checking for golangci-lint
Installing golangci-lint
go: cannot use path@version syntax in GOPATH mode
Instead, I updated ./hack/check-everything.sh
to use the curl
/goreleaser
installation method that's used elsewhere. Was there some reason we weren't using that here?
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 GO111MODULE=off approach doesn't work though
Ah, yes, because of the version. Got it.
Was there some reason we weren't using that here?
If I have to guess, it was done before go modules were introduced and it never changed.
No huge rush here, but this is still waiting on kubernetes/test-infra#14373. I think that should pass CI and be able to be merged without breaking @DirectXMan12 can you add |
@joelanford Does it make sense to have two presubmits, one with go 1.12 for the release-0.2 branch and one with go 1.13 for the master branch or can we safely assume that the presubmit with go 1.13 will work on both? |
@alvaroaleman I see no reason it would not work on both. But the question in my mind is whether this PR will necessitate moving to If we jump to If we just continue to |
We probably want to make sure we don't break go1.12 on release-0.2 -- IMO, we'll want to go to v0.3.0 for go1.13, but I'm not certain exactly how we want to deal with language version bumps. |
What do other people think, especially end consumers of CR? Is go-1.13 in all the major distros at this point yet? |
5081bf2
to
070701a
Compare
Just updated kubernetes/test-infra#14373 to have separate builds for each branch and to bump I also updated this PR to move from Anything else we should handle here? |
This soft-bumps to Go 1.13. Mandatory Go 1.13 changes may follow in future point releases (e.g. kubernetes-sigs#606).
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@joelanford: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, joelanford 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 |
This PR builds on #598 by completing more of the tasks listed in #590:
(note: we already did a soft-bump to 1.13 the previous release, this just starts using the features)