You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have an independent macro that users set up in addition to their scalafmt_scala_library targets which looks something like:
def scala_fmt_test(name,target):
native.sh_test(
name = name + "_scala_fmt_test",
srcs = [target + ".format-test"],
)
Have scalafmt_scala_library actually be a macro that delegates to _scalafmt_scala_library_rule and scala_fmt_test.
If you want this to be toggled via a toolchain then you can do something like 2 but instead of using a regular sh_test you can write one of your own that will depend on the toolchain.
I don't suppose anyone has made this work? I also went down the "create a wrapping sh_test that invokes the foo.format-test path, and ran into the same issue of missing manifest file (and, presumably, the formatted output files)
scalafmt_scala_library
targets which looks something like:scalafmt_scala_library
actually be a macro that delegates to_scalafmt_scala_library_rule
andscala_fmt_test
.sh_test
you can write one of your own that will depend on the toolchain.Reference from #912 (comment)
The text was updated successfully, but these errors were encountered: