rules_ruby
rules_ruby copied to clipboard
Generate convenience target alongside binary.sh target that changes the current working directory
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 🙌🏼
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.