rules_scala icon indicating copy to clipboard operation
rules_scala copied to clipboard

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

Open wiwa opened this issue 3 years ago • 1 comments
trafficstars

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

wiwa avatar Apr 12 '22 17:04 wiwa

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

liucijus avatar Apr 19 '22 05:04 liucijus