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
Removes the `scalafmt_config()` macro and replaces it with the new
`@rules_scala_toolchains//scalafmt:config` target.
The new `test/shell/test_dependency_versions.sh` test found a problem
with the previous implementation. The `dev_deps` extension in
`MODULE.bazel` generated `@scalafmt_default`, leaving it invisible to
`rules_scala` when it's not the main module:
```txt
ERROR: no such package
'@@[unknown repo 'scalafmt_default' requested from @@rules_scala~]//':
The repository
'@@[unknown repo 'scalafmt_default' requested from @@rules_scala~]'
could not be resolved:
No repository visible as '@scalafmt_default'
from repository '@@rules_scala~'
ERROR: .../tmp/test_dependency_versions/BUILD:52:20:
every rule of type scalafmt_scala_test
implicitly depends upon the target
'@@[unknown repo 'scalafmt_default' requested from @@rules_scala~]//:config',
but this target could not be found because of:
no such package
'@@[unknown repo 'scalafmt_default' requested from @@rules_scala~]//':
The repository '@@[unknown repo 'scalafmt_default' requested from @@rules_scala~]'
could not be resolved:
No repository visible as '@scalafmt_default' from repository '@@rules_scala~'
Documentation for implicit attribute config of rules of type scalafmt_scala_test:
The Scalafmt configuration file.
ERROR: Analysis of target '//:ScalafmtTest' failed;
build aborted: Analysis failed
```
The `scalafmt_default_config()` macro is already gone, and only
`scala_toolchains()` invoked `scalafmt_config()`, making this a
straightforward change.
0 commit comments