bazel-contrib / bazel-contrib/rules_ruby
Generate convenience target alongside binary.sh target that changes the current working directory
- Dominant language
- Starlark
- Stars
- 50
- Forks
- 22
- Avg merge
- 9d 23h
- Merged PRs (30d)
- 5
Description
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](https://github.com/theoremlp/rules_multitool/blob/main/multitool/private/cwd.template.sh).
Not sure if you're interested in this, but the support in multitool has already been very helpful to me 🙌🏼
Contributor guide
Assessment
This issue has not been assessed yet.