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

Use rules_shell's sh_binary and sh_test #4182

Merged
merged 6 commits into from
Nov 26, 2024

Conversation

ted-xie
Copy link
Contributor

@ted-xie ted-xie commented Nov 26, 2024

Bazel 8 deletes all native shell rules. In order for other rule repositories (i.e. rules_android) to use rules_go, the references to native sh_* must be converted to rules_shell's respective versions.

Unblocks bazelbuild/rules_android#278

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Adds rules_shell dep and properly loads sh_binary/test where applicable.

Which issues(s) does this PR fix?

Without this PR, rule repositories cannot depend upon rules_go with Bazel 8.

Fixes #4181.

Other notes for review

Bazel 8 deletes all native shell rules. In order for other rule
repositories (i.e. rules_android) to use rules_go, the references to
native sh_* must be converted to rules_shell's respective versions.

Unblocks bazelbuild/rules_android#278
@fmeum fmeum merged commit e8adba2 into bazel-contrib:master Nov 26, 2024
1 check passed
@ted-xie
Copy link
Contributor Author

ted-xie commented Nov 27, 2024

Thank you, @fmeum! We're hoping to integrate this code ASAP to unblock the next rules_android and Bazel releases. Is there a rules_go release planned soon?

ted-xie added a commit to ted-xie/rules_android that referenced this pull request Nov 27, 2024
Currently relies on git_override and commit archive. Needs a rules_go
release containing bazel-contrib/rules_go#4182
to fully productionize.
@fmeum
Copy link
Member

fmeum commented Nov 27, 2024

I'm working on an rc2 release that you can upgrade to: #4183

ted-xie added a commit to ted-xie/rules_android that referenced this pull request Dec 4, 2024
Currently relies on git_override and commit archive. Needs a rules_go
release containing bazel-contrib/rules_go#4182
to fully productionize.
ted-xie added a commit to ted-xie/rules_android that referenced this pull request Dec 5, 2024
Currently relies on git_override and commit archive. Needs a rules_go
release containing bazel-contrib/rules_go#4182
to fully productionize.
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.

Problematic native.sh_* references block Bazel 8 migration for rule repositories
2 participants