aspect-build / rules_lint

Run static analysis tools with Bazel
Apache License 2.0
78 stars 44 forks source link

[Bug]: scalafmt stopped working in 1.0.0-rc9 #413

Open agluszak opened 1 day ago

agluszak commented 1 day ago

What happened?

It works in 1.0.0-rc8. Starting in 1.0.0-rc9 it reports progress as usual, but the changes to the files are not made. Same in 1.0.0-rc10, 1.0.1 and 1.0.2

Version

Development (host) and target OS/architectures:

Output of bazel --version: bazel 7.3.1

Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file:

Language(s) and/or frameworks involved:

How to reproduce

No response

Any other information?

No response

alexeagle commented 20 hours ago

That's very surprising - studying https://github.com/aspect-build/rules_lint/compare/v1.0.0-rc8...v1.0.0-rc9 I can't see anything that could explain this. Also I edited example/src/hello.scala in this repo (at HEAD) and then cd example ; bazel run format src/hello.scala and it re-formatted the file.

So I think something else must be wrong in your setup.