-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 bazelbuild/rules_go to 0.24.13 (preparing for go 1.16 upgrade) #8463
Conversation
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.
You have to register the toolchain correctly too below:
go_register_toolchains(
go_version = "1.16",
nogo = "@//:nogo",
)
Also go.mod needs to be updated to account for the new go version, and there are some breaking changes in v1.16 (deprecating of ioutil) that we have to patch in too. Also we will want to use the new embed directive in a few places.
@nisdas This PR is intended to just update the |
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.
Let's hold off on upgrading 1.16 too fast
Much rather be slow and diligent 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.
Looks good!
@terencechain this doesn't update go to 1.16 yet. That can come in another 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.
Thanks for clarifying @pinglamb , looks good to me in that case
What type of PR is this?
What does this PR do? Why is it needed?
Update
rules_go
to0.24.13
which starts to support go 1.16. https://github.com/bazelbuild/rules_go/releases/tag/v0.24.13This is for preparing the go 1.16 upgrade. Further changes/PRs are needed.
Which issues(s) does this PR fix?
Other notes for review