-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
bazel: update golang and rules_go #17438
Conversation
81a85c2
to
d24279e
Compare
f168fd0
to
0ace424
Compare
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.
LGTM, thanks!
hrm failure is related but not seeing any details in the log, will have to look later |
/lgtm deps |
0ace424
to
f0c2c1f
Compare
acca0b7
to
7a59721
Compare
/lgtm deps |
The Go build in |
Hoping #17082 helps us out here |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
still blocked on the linked PR, but still important |
Oops that linked the issue, this is the actual PR #17460 |
7a59721
to
da44933
Compare
Seems still broken on API build. |
bazel/dependency_imports.bzl
Outdated
@@ -11,7 +11,7 @@ load("@rules_antlr//antlr:deps.bzl", "antlr_dependencies") | |||
load("@proxy_wasm_rust_sdk//bazel:dependencies.bzl", "proxy_wasm_rust_sdk_dependencies") | |||
|
|||
# go version for rules_go | |||
GO_VERSION = "1.15.5" | |||
GO_VERSION = "1.16.6" |
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.
Go 1.17 is now out (latest is Go 1.17.1: https://golang.org/dl/), any chance we can try updating to that? Hopefully a drop-in in this PR but can make it a follow-up PR if needed.
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.
Typically the rules_go
release updates were very close to Go releases. That seems to have stopped with 0.28.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.
FWIW, my read of bazel-contrib/rules_go#2729 is that it should no longer be required to update rules_go
for every new Go release.
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.
Interesting. We we need to continue to set the Go version to get reproducible builds (and to stop a potential breakage as the Go version increment in the background). So the changes to rules_go
0.28.0
and bazel-gazelle
to 0.23.0
LGTM. We should bump the Go version on line 14 to 1.17.1
(I've been running this setup locally since 1.17
came 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.
I did the minimum bump required to get M1 support at the time I submitted this PR just to keep this change as small as possible, happy to bump more, it will probably be fine
These updates are required for things to work nicely when building on Apple Silicon machines targeting darwin_arm64. Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
da44933
to
82e5eef
Compare
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
@keith any update on this? |
It is now part of #17460 I just want to make sure that lands so we don't forget about it |
These updates are required for things to work nicely when building on
Apple Silicon machines targeting darwin_arm64.
Risk Level: Low
Fix #18339