Skip to content

Add a 'tools' attribute to the rules, similar to genrule#41

Open
novas0x2a wants to merge 1 commit intobazel-contrib:mainfrom
novas0x2a:tools
Open

Add a 'tools' attribute to the rules, similar to genrule#41
novas0x2a wants to merge 1 commit intobazel-contrib:mainfrom
novas0x2a:tools

Conversation

@novas0x2a
Copy link
Copy Markdown

It's common for shell scripts to use external binaries (things from coreutils being a common example). This provides a way to declare those dependencies explicitly, and ensure they are in the correct configuration to be run as part of the script.

It's common for shell scripts to use external binaries (things from coreutils being
a common example). This provides a way to declare those dependencies
explicitly, and ensure they are in the correct configuration to be run
as part of the script.
@novas0x2a
Copy link
Copy Markdown
Author

novas0x2a commented Nov 14, 2025

Hm. I didn't realize that this module prioritizes using the java versions of the rules; that means this change will break the tests (and just the tests) on bazel 6 and 7. Is there a way to set the tools-attribute tests up such that they only run on the starlark version? Should I just drop the tests?

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.

1 participant