bazel-contrib / bazel-contrib/rules_scala
make repls for all targets
- Dominant language
- Starlark
- Stars
- 384
- Forks
- 292
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 47
Description
now that bazel run can support repls without any silly dance
see: https://groups.google.com/d/msg/bazel-discuss/hXpklreOPik/2Suxd84dAgAJ
maybe we should make a `.repl` runnable target as an optional output of all rules. Then users can do
```
bazel run --direct_run //foo/bar:baz.repl
```
and be dropped directly into a repl session with the same classpath as the target.
I think this would be a nice usability win to avoid having to manually make a second target, and if it is an optional output it shouldn't slow down the build unless needed.
What do you think @ittaiz
Contributor guide
Research direction
Start by reviewing how the repository's rules expose runnable targets and how `bazel run --direct_run` handles the proposed `.repl` target. Done means an optional `.repl` runnable target is available for all relevant rules, opens a REPL with the target's classpath, and does not add build work unless requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100