Skip to content

Commit f5a2c98

Browse files
committed
Resolve #1168 by way of a makeshift, in absence of better isolation of the ksp environment.
1 parent 681b218 commit f5a2c98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/kotlin/io/bazel/kotlin/builder/toolchain/KotlinToolchain.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,10 @@ class KotlinToolchain private constructor(
234234
},
235235
Preloader.DEFAULT_CLASS_NUMBER_ESTIMATE,
236236
classLoader,
237-
null,
238-
)
237+
) { className ->
238+
// Preload guava to avoid weird isolation issues.
239+
className.startsWith("com.google.common.")
240+
}
239241
}.onFailure {
240242
throw RuntimeException("$javaHome, $baseJars", it)
241243
}.getOrThrow()

0 commit comments

Comments
 (0)