Is this normal? ```e: KLIB resolver: Could not fin...
# kotlinx-datetime
c
Is this normal?
Copy code
e: KLIB resolver: Could not find "org.jetbrains.kotlinx:kotlinx-datetime-cinterop-date" in [/…/pedestal, /…/.konan/klib, /…/.konan/kotlin-native-prebuilt-linux-x86_64-2.0.0/klib/common, /…/.konan/kotlin-native-prebuilt-linux-x86_64-2.0.0/klib/platform/linux_x64]
It just started happening on an existing project. Kotlin 2.0.0 KotlinX.Datetime 0.6.0
d
Yes, it's expected, unfortunately. https://github.com/Kotlin/kotlinx-datetime/issues/397 Some of your library dependencies depends on the older
kotlinx-datetime
version, which had a
kotlinx-datetime-cinterop-date
artifact. Please attempt upgrading your dependencies; if that fails (on a clean build!), I can look into working around this issue.
😕 1
c
Thanks. This project is in a very weird situation in which each dependency upgrade I try to do breaks it in a new way… One of the fixes is in Kotlin 2.1.0-Beta1, I'll try again when that's released
Hey! The problem seems to still be there 😕 Dependencies:
Copy code
com.benwoodworth.parameterize:parameterize-jvm:0.3.2
 com.benwoodworth.parameterize:parameterize:0.3.2
 com.github.ajalt:colormath:1.2.0
 com.github.ajalt:mordant:1.2.1
 dev.opensavvy.prepared:compat-arrow-jvm:1.5.1
 dev.opensavvy.prepared:compat-arrow:1.5.1
 dev.opensavvy.prepared:compat-kotlinx-datetime-jvm:1.5.1
 dev.opensavvy.prepared:compat-kotlinx-datetime:1.5.1
 dev.opensavvy.prepared:compat-parameterize-jvm:1.5.1
 dev.opensavvy.prepared:compat-parameterize:1.5.1
 dev.opensavvy.prepared:runner-kotest-jvm:1.5.1
 dev.opensavvy.prepared:runner-kotest:1.5.1
 dev.opensavvy.prepared:suite-jvm:1.5.1
 dev.opensavvy.prepared:suite:1.5.1
 io.arrow-kt:arrow-annotations-jvm:1.2.4
 io.arrow-kt:arrow-annotations:1.2.4
 io.arrow-kt:arrow-atomic-jvm:1.2.4
 io.arrow-kt:arrow-atomic:1.2.4
 io.arrow-kt:arrow-continuations-jvm:1.2.4
 io.arrow-kt:arrow-continuations:1.2.4
 io.arrow-kt:arrow-core-jvm:1.2.4
 io.arrow-kt:arrow-core:1.2.4
 io.github.classgraph:classgraph:4.8.172
 io.kotest:kotest-assertions-api-jvm:5.9.1
 io.kotest:kotest-assertions-api:5.9.1
 io.kotest:kotest-assertions-core-jvm:5.9.1
 io.kotest:kotest-assertions-core:5.9.1
 io.kotest:kotest-assertions-shared-jvm:5.9.1
 io.kotest:kotest-assertions-shared:5.9.1
 io.kotest:kotest-common-jvm:5.9.1
 io.kotest:kotest-common:5.9.1
 io.kotest:kotest-extensions-jvm:5.9.1
 io.kotest:kotest-extensions:5.9.1
 io.kotest:kotest-framework-api-jvm:5.9.1
 io.kotest:kotest-framework-api:5.9.1
 io.kotest:kotest-framework-concurrency-jvm:5.9.1
 io.kotest:kotest-framework-concurrency:5.9.1
 io.kotest:kotest-framework-discovery-jvm:5.9.1
 io.kotest:kotest-framework-discovery:5.9.1
 io.kotest:kotest-framework-engine-jvm:5.9.1
 io.kotest:kotest-framework-engine:5.9.1
 io.kotest:kotest-runner-junit5-jvm:5.9.1
 io.kotest:kotest-runner-junit5:5.9.1
 org.apiguardian:apiguardian-api:1.1.2
 org.jetbrains.kotlin:kotlin-stdlib:2.0.20
 org.jetbrains.kotlin:kotlin-test-junit5 -> 2.0.20
 org.jetbrains.kotlin:kotlin-test-junit5:2.0.20 (c)
 org.jetbrains.kotlin:kotlin-test:2.0.20
 org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0
 org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0
 org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0 (c)
 org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0
 org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0 (c)
 org.jetbrains.kotlinx:kotlinx-coroutines-test-jvm:1.9.0
 org.jetbrains.kotlinx:kotlinx-coroutines-test-jvm:1.9.0 (c)
 org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0 -> 1.9.0
 org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0 (c)
 org.jetbrains.kotlinx:kotlinx-datetime-jvm:0.6.1
 org.jetbrains.kotlinx:kotlinx-datetime:0.6.1
 org.jetbrains:annotations:13.0 -> 23.0.0
 org.jetbrains:annotations:23.0.0
 org.junit.jupiter:junit-jupiter-api:5.10.1 (c)
 org.junit.jupiter:junit-jupiter-api:5.8.2 -> 5.10.1
 org.junit.platform:junit-platform-commons:1.10.1
 org.junit.platform:junit-platform-commons:1.10.1 (c)
 org.junit.platform:junit-platform-engine:1.10.1 (c)
 org.junit.platform:junit-platform-engine:1.8.2 -> 1.10.1
 org.junit.platform:junit-platform-launcher:1.10.1 (c)
 org.junit.platform:junit-platform-launcher:1.8.2 -> 1.10.1
 org.junit.platform:junit-platform-suite-api:1.10.1 (c)
 org.junit.platform:junit-platform-suite-api:1.8.2 -> 1.10.1
 org.junit:junit-bom:5.10.1
 org.opentest4j:opentest4j:1.3.0
Repro: •
<https://gitlab.com/opensavvy/groundwork/pedestal.git>
• Branch
137-cache-tests
• Command
./gradlew :cache:compileTestKotlinLinuxX64
Ah, it's because of the transitive dependency on Prepared, which depends on KotlinX.Datetime 0.5.0, no?
d
Yep, as long as someone depends on an outdated kotlinx-datetime, the problem remains. If that's an issue, we'll look into fixing this in the next release.
c
I'll keep you updated, but so far it looks I can fix it on my side
👍 1