rules_ruby icon indicating copy to clipboard operation
rules_ruby copied to clipboard

Generate convenience target alongside binary.sh target that changes the current working directory

Open aaronsky opened this issue 9 months ago • 1 comments

Akin to theoremlp/rules_multitool#29, as an addition to the existing support in binary.bzl, it would be great to also have a convenience target that makes it easier to bazel run the generated @bundle//bin:{tool} target in the current directory. This can be worked around with a custom script and runfiles.bash, but it would be much easier for me to just bazel run @bundle//bin/{tool}:cwd or something like that. Kind of like this.

Not sure if you're interested in this, but the support in multitool has already been very helpful to me 🙌🏼

aaronsky avatar May 05 '24 02:05 aaronsky

Can you give me an example of how you would use this with rules_ruby? Would you use it with a linter or a custom Ruby script? I'd use this as a test during the implementation.

p0deje avatar May 05 '24 16:05 p0deje