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

Migrate for Bazel's --incompatible_require_ctx_in_configure_features #2054

Merged

Conversation

hlopko
Copy link
Contributor

@hlopko hlopko commented May 10, 2019

This PR migrates rules_go for Bazel's incompatible change bazelbuild/bazel#7793, which is present in 0.25.

@hlopko
Copy link
Contributor Author

hlopko commented May 10, 2019

@jayconrod I see your TODO a line above my change regarding toolchain files. cc_toolchain.all_files method is now available and it is forward compatible with toolchains.

New Bazel versions require a ctx argument; old versions don't know
about it.

Also: convert compat_repo.bzl logic into a loop. Adding a new versions
should just mean adding a file and adding a number to a list.
@jayconrod
Copy link
Contributor

I changed this a little to go through the compatibility layer. Old versions of Bazel (rules_go supports back to 0.18.0) don't know about the ctx parameter.

@jayconrod jayconrod merged commit 40f50df into master May 13, 2019
@jayconrod jayconrod deleted the migrate_for_incompatible_require_ctx_in_configure_features branch May 13, 2019 18:57
jayconrod pushed a commit that referenced this pull request May 15, 2019
…2054)

This PR migrates rules_go for Bazel's incompatible change bazelbuild/bazel#7793, which is present in 0.25.

New Bazel versions require a ctx argument; old versions don't know
about it, so this call is made through the compatibility layer.

Also: convert compat_repo.bzl logic into a loop. Adding a new versions
should just mean adding a file and adding a number to a list.
jayconrod pushed a commit that referenced this pull request May 15, 2019
…2054)

This PR migrates rules_go for Bazel's incompatible change bazelbuild/bazel#7793, which is present in 0.25.

New Bazel versions require a ctx argument; old versions don't know
about it, so this call is made through the compatibility layer.

Also: convert compat_repo.bzl logic into a loop. Adding a new versions
should just mean adding a file and adding a number to a list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants