Skip to content

Commit 8666bc8

Browse files
committed
don't mention scalafix on resolution error if semanticdbVersion is custom
1 parent d54f51b commit 8666bc8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/scala/scalafix/sbt/ScalafixPlugin.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ object ScalafixPlugin extends AutoPlugin {
242242
def unapply(id: ModuleID): Option[String] =
243243
if (
244244
id.organization == scalafixSemanticdb.organization &&
245-
id.name.startsWith(scalafixSemanticdb.name)
245+
id.name.startsWith(scalafixSemanticdb.name) &&
246+
id.revision == BuildInfo.scalametaVersion
246247
) Some(id.revision)
247248
else None
248249
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
# Check if we have an actionnable failure
12
-> scalafix
23
> checkLogs
4+
5+
# Check that we don't output the message if the semanticdbVersion does not come from scalafix
6+
> set ThisBuild / semanticdbVersion := "4.8.5"
7+
-> scalafix
8+
-> checkLogs

0 commit comments

Comments
 (0)