Skip to content

Commit d5011cb

Browse files
[Uber] Stop using symbolic link path for kotlin-reflect library
Fix exisiting issue with recent factor
1 parent 5ac8b59 commit d5011cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import org.jetbrains.kotlin.preloading.Preloader
2626
import java.io.File
2727
import java.io.PrintStream
2828
import java.lang.reflect.Method
29+
import java.nio.file.Files
2930
import java.nio.file.FileSystems
3031
import java.nio.file.Path
3132
import java.nio.file.Paths
@@ -103,6 +104,7 @@ class KotlinToolchain private constructor(
103104
.resolveVerifiedFromProperty(
104105
"@rules_kotlin..kotlin.compiler.kotlin-reflect",
105106
).toPath()
107+
.let { if (Files.isSymbolicLink(it)) Files.readSymbolicLink(it) else it }
106108
}
107109

108110
private val KOTLINX_SERIALIZATION_CORE_JVM by lazy {

0 commit comments

Comments
 (0)