bazelbuild / rules_scala

Scala rules for Bazel
Apache License 2.0
363 stars 278 forks source link

Should scala_binary and scala_tests rules inherit behavior from *_binary and *_tests? #1383

Open wiwa opened 2 years ago

wiwa commented 2 years ago

i.e. like java_binary and java_test. One example is how scala_tests don't have the env attribute from java_test. I believe that Bazel inherits attributes by depending on their "parent" classes(?) when specifying the rule in .java files, so this would be a departure from how we are currently specifying _impls in Starlark.

Common attributes: https://docs.bazel.build/versions/3.1.0/be/common-definitions.html#common-attributes-tests

liucijus commented 2 years ago

@wiwa could you expand more about what you mean with "Bazel inherits attributes by depending on their "parent" classes" in context of Rules Scala?