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 for shell targets #1960

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Conversation

ted-xie
Copy link
Contributor

@ted-xie ted-xie commented Oct 18, 2024

What type of PR is this?

Bug fix

What package or component does this PR mostly affect?

all

What does this PR do? Why is it needed?

Adds an explicit load (and dep) for sh_binary, which is no longer packaged inside Bazel 8. This is backwards-compatible with Bazel 7.

Which issues(s) does this PR fix?

Fixes #1959

Other notes for review

Copy link
Member

@fmeum fmeum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change unfortunately isn't fully backwards compatible unless we find a way to invoke rules_shell's dependency macros from the existing WORKSPACE dependency macros of gazelle. We shouldn't have to change WORKSPACE to get this to work.

Could you give that a try?

@fmeum fmeum enabled auto-merge (squash) November 11, 2024 17:50
@fmeum fmeum merged commit f081197 into bazel-contrib:master Nov 11, 2024
14 checks passed
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.

native.sh_binary reference in def.bzl blocks Bazel 8 integration
2 participants