Skip to content

Commit

Permalink
Stop using symbolic link path for kotlin-reflect library
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviernotteghem committed Jan 25, 2025
1 parent 7517d95 commit e9fe042
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/ksp/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import org.jetbrains.kotlin.preloading.Preloader
import java.io.File
import java.io.PrintStream
import java.lang.reflect.Method
import java.nio.file.Files
import java.nio.file.FileSystems
import java.nio.file.Path
import java.nio.file.Paths
Expand Down Expand Up @@ -103,6 +104,7 @@ class KotlinToolchain private constructor(
.resolveVerifiedFromProperty(
"@rules_kotlin..kotlin.compiler.kotlin-reflect",
).toPath()
.let { if (Files.isSymbolicLink(it)) Files.readSymbolicLink(it) else it }
}

private val KOTLINX_SERIALIZATION_CORE_JVM by lazy {
Expand Down

0 comments on commit e9fe042

Please sign in to comment.