From 4001ea6b1635662b4045b046b2348fe1940a5066 Mon Sep 17 00:00:00 2001 From: jjudd Date: Tue, 12 Nov 2024 12:32:54 -0700 Subject: [PATCH] Debug info to fix flaky test --- .../rules_scala/workers/deps/DepsRunner.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/scala/higherkindness/rules_scala/workers/deps/DepsRunner.scala b/src/main/scala/higherkindness/rules_scala/workers/deps/DepsRunner.scala index 284d1348..a3023903 100644 --- a/src/main/scala/higherkindness/rules_scala/workers/deps/DepsRunner.scala +++ b/src/main/scala/higherkindness/rules_scala/workers/deps/DepsRunner.scala @@ -156,6 +156,18 @@ object DepsRunner extends WorkerMain[Unit] { } else { Nil } + if (!labelsToRemove.isEmpty) { + workRequest.directDepLabels + .diff(workRequest.usedDepWhitelist) + .map { label => + out.println(s"label: ${label} pathsForLabel: ${pathsForLabel(label)}") + } + out.println( + s"labelsToRemove: ${labelsToRemove}." + + s"\nusedDepWhiteList: ${workRequest.usedDepWhitelist}" + + s"\nusedPaths: ${usedPaths}", + ) + } labelsToRemove.foreach { depLabel => out.println(s"Target '$depLabel' not used, please remove it from the deps.") out.println(s"You can use the following buildozer command:")