File tree 3 files changed +8
-6
lines changed
src/main/scala/higherkindness/rules_scala/workers/deps
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ scala_binary(
55
55
"//src/main/scala/higherkindness/rules_scala/common/worker" ,
56
56
"//src/main/scala/higherkindness/rules_scala/workers/common" ,
57
57
"@annex//:net_sourceforge_argparse4j_argparse4j" ,
58
- "@annex_scalafmt//:com_geirsson_metaconfig_core_2_13 " ,
58
+ "@annex_scalafmt//:org_scalameta_metaconfig_core_2_13 " ,
59
59
"@annex_scalafmt//:org_scalameta_parsers_2_13" ,
60
60
"@annex_scalafmt//:org_scalameta_scalafmt_core_2_13" ,
61
61
],
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ object ScalafmtRunner extends WorkerMain[Unit] {
68
68
} catch {
69
69
case e @ (_ : org.scalafmt.Error | _ : scala.meta.parsers.ParseException ) => {
70
70
if (config.runner.fatalWarnings) {
71
- System .err .println(Color .Error (" Exception thrown by Scalafmt and fatalWarnings is enabled" ))
71
+ task.out .println(Color .Error (" Exception thrown by Scalafmt and fatalWarnings is enabled" ))
72
72
throw e
73
73
} else {
74
- System .err .println(Color .Warning (" Unable to format file due to bug in scalafmt" ))
75
- System .err .println(Color .Warning (e.toString))
74
+ task.out .println(Color .Warning (" Unable to format file due to bug in scalafmt" ))
75
+ task.out .println(Color .Warning (e.toString))
76
76
source
77
77
}
78
78
}
Original file line number Diff line number Diff line change @@ -173,8 +173,10 @@ object DepsRunner extends WorkerMain[Unit] {
173
173
(usedPaths -- (workRequest.directDepLabels :++ workRequest.unusedDepWhitelist).flatMap(pathsForLabel))
174
174
.flatMap { path =>
175
175
groupLabelToJarPaths.collectFirst { case (myLabel, paths) if paths(path) => myLabel }.orElse {
176
- System .err
177
- .println(s " Warning: There is a reference to $path, but no dependency of ${workRequest.label} provides it " )
176
+ task.out
177
+ .println(
178
+ s " Warning: There is a reference to $path, but no dependency of ${workRequest.label} provides it " ,
179
+ )
178
180
None
179
181
}
180
182
}
You can’t perform that action at this time.
0 commit comments