Skip to content
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

Merged
merged 3 commits into from Feb 18, 2021

Conversation

pinglamb
Copy link
Contributor

@pinglamb pinglamb commented Feb 17, 2021

What type of PR is this?

Other

What does this PR do? Why is it needed?

Update rules_go to 0.24.13 which starts to support go 1.16. https://github.com/bazelbuild/rules_go/releases/tag/v0.24.13

This is for preparing the go 1.16 upgrade. Further changes/PRs are needed.

Which issues(s) does this PR fix?

Other notes for review

@pinglamb pinglamb requested a review from a team as a code owner February 17, 2021 09:58
@pinglamb pinglamb changed the title Update bazelbuild/rules_go to 0.24.13 Update bazelbuild/rules_go to 0.24.13 (for go 1.16) Feb 17, 2021
Copy link
Member

@nisdas nisdas left a 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.

@pinglamb
Copy link
Contributor Author

pinglamb commented Feb 17, 2021

@nisdas This PR is intended to just update the rules_go to 0.24.13. I plan to create multiple PRs for updating to go 1.16 and hope to keep each change manageable.

@pinglamb pinglamb requested a review from nisdas February 17, 2021 15:01
@pinglamb pinglamb changed the title Update bazelbuild/rules_go to 0.24.13 (for go 1.16) Update bazelbuild/rules_go to 0.24.13 (preparing for go 1.16 upgrade) Feb 17, 2021
Copy link
Member

@terencechain terencechain left a 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

Copy link
Member

@prestonvanloon prestonvanloon left a 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.

Copy link
Member

@nisdas nisdas left a 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

@nisdas nisdas merged commit fc26505 into prysmaticlabs:develop Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants