diff --git a/rules/scala.bzl b/rules/scala.bzl index 9c107d23..c7a569eb 100644 --- a/rules/scala.bzl +++ b/rules/scala.bzl @@ -90,6 +90,7 @@ _compile_attributes = { ".java", ".srcjar", ], + flags = ["DIRECT_COMPILE_TIME_INPUT"], ), "data": attr.label_list( doc = "The additional runtime files needed by this library.", diff --git a/rules/scalafmt/private/test.bzl b/rules/scalafmt/private/test.bzl index 80ca3ec6..3ae324a5 100644 --- a/rules/scalafmt/private/test.bzl +++ b/rules/scalafmt/private/test.bzl @@ -25,9 +25,7 @@ scala_non_default_format_attributes = { allow_single_file = True, default = "@rules_scala_annex//rules/scalafmt:testrunner", ), - "format": attr.bool( - default = False, - ), + "format": attr.bool(default = True), } def build_format(ctx):