-
Notifications
You must be signed in to change notification settings - Fork 85
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
[WIP] go1.15beta1 support #197
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justaugustus 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 |
@@ -29,6 +34,57 @@ def configure(minimum_bazel_version = None, rbe_name = "rbe_default", go_version | |||
protobuf_deps() # No options | |||
|
|||
go_rules_dependencies() # No options | |||
|
|||
go_download_sdk( |
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.
Please make this optional as I believe it forces everyone to use 1.15beta1.
For example:
EXTRA_VERSIONS = {"go1.15beta1": {
"darwin_amd64": ("go1.15beta1.darwin-amd64.tar.gz", "4ee49...bd7e"),
"freebsd_386": ("go1.15beta1.freebsd-386.tar.gz", "77bc...5c94"),
...
}}
def configure(... extra_version=None):
...
if extra_version:
go_download_sdk(name="go_sdk", sdks=EXTRA_VERSIONS[extra_version])
go_register_toolchains(go_version = extra_version, nogo = nogo)
else
go_register_toolchains(go_version = go_version, nogo = nogo)
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 like this! Will do.
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.
Fixed up!
go.mod
Outdated
k8s.io/klog/v2 v2.0.0 | ||
github.com/golangci/golangci-lint v1.29.0 | ||
golang.org/x/build v0.0.0-20200720211405-d0191c8228ec | ||
k8s.io/klog/v2 v2.3.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.
Can we move all these version bumps to their own PR?
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.
Yep! This was more so yak shaving in support of the k/k go1.15 bump.
I'll split it out.
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.
Deps bump in #198.
/hold cancel |
Hey @jayconrod, I'm trying out your fix in 5616130 (bazelbuild/rules_go#2579), but getting some errors. Have you seen this before: https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/repo-infra/197/pull-repo-infra-tests/1286073407053500416 Is it maybe related to the fact that we're using the rules_go 0.22.z patch series instead of 0.23.z? |
/hold this isn't in a happy state right now |
2dc1eff
to
c695b31
Compare
c695b31 pulls in bazelbuild/rules_go#2579. I'm going to keep this PR roughly in this state and tackle the alternate go versions support in a separate PR (since that was causing kubernetes/kubernetes#93264 to fail).
|
@justaugustus Yes, that looks like the problem. In I'll backport this fix and tag a 0.22.x point release today, so hopefully you won't need to update anything else. |
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
(Rebased to pull in rules_go@v0.22.9 --> #201) |
Superseded by #202. |
@justaugustus: PR needs rebase. 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. |
@justaugustus: Closed this PR. In response to this:
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. |
Signed-off-by: Stephen Augustus saugustus@vmware.com
/hold testing go1.15beta1 release for kubernetes/kubernetes#93264
cc: @kubernetes/release-engineering