Skip to content

Commit 6ae940e

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@ class KotlinToolchain private constructor(
233233
}
234234
},
235235
Preloader.DEFAULT_CLASS_NUMBER_ESTIMATE,
236-
classLoader,
237-
null,
238-
)
236+
classLoader
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)