From e1c29369c0fdec5f4341ea15ba9fb33fd64b3566 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sun, 2 May 2021 23:51:42 -0400 Subject: [PATCH] Fork mainProj ``` [error] (zincLmIntegrationProj / Test / executeTests) java.lang.LinkageError: loader constraint violation in interface itable initialization for class sbt.internal.inc.ZincComponentCompiler$ZincCompilerBridgeProvider: when selecting method 'xsbti.compile.ScalaInstance xsbti.compile.CompilerBridgeProvider.fetchScalaInstance(java.lang.String, xsbti.Logger)' the class loader sbt.internal.SbtInterfaceLoader @1224144a for super interface xsbti.compile.CompilerBridgeProvider, and the class loader sbt.internal.BottomClassLoader @52daa20b of the selected method's class, sbt.internal.inc.ZincComponentCompiler$ZincCompilerBridgeProvider have different Class objects for the type xsbti.Logger used in the signature (xsbti.compile.CompilerBridgeProvider is in unnamed module of loader sbt.internal.SbtInterfaceLoader @1224144a, parent loader sbt.internal.MetaBuildLoader$1 @6f36c2f0; sbt.internal.inc.ZincComponentCompiler$ZincCompilerBridgeProvider is in unnamed module of loader sbt.internal.BottomClassLoader @52daa20b, parent loader sbt.internal.ReverseLookupClassLoader @39b00393) ``` --- build.sbt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.sbt b/build.sbt index 279dd8b34..5589af998 100644 --- a/build.sbt +++ b/build.sbt @@ -878,6 +878,7 @@ lazy val zincLmIntegrationProj = (project in file("zinc-lm-integration")) exclude[IncompatibleSignatureProblem]("sbt.internal.inc.ZincLMHelper.update"), ), libraryDependencies += launcherInterface, + Test / fork := true, ) .configure(addSbtZincCompileCore, addSbtLmCore, addSbtLmIvyTest) @@ -916,6 +917,7 @@ lazy val mainProj = (project in file("main")) Compile / generateContrabands / sourceManaged := baseDirectory.value / "src" / "main" / "contraband-scala", Test / testOptions += Tests .Argument(TestFrameworks.ScalaCheck, "-minSuccessfulTests", "1000"), + Test / fork := true, SettingKey[Boolean]("usePipelining") := false, mimaSettings, mimaBinaryIssueFilters ++= Vector(