yshrsmz04/01/2020, 8:00 AM
Here's the repo https://github.com/yshrsmz/kgql/tree/kotlin1.3.71-builderror If you run
e: Could not find "kotlinx-serialization-runtime" in [/Users/yshrsmz/repos/github.com/yshrsmz/kgql, /Users/yshrsmz/.konan/klib, /Users/a12897/.konan/kotlin-native-macos-1.3.71/klib/common, /Users/yshrsmz/.konan/kotlin-native-macos-1.3.71/klib/platform/ios_x64].
at the root directory,
$ ./gradlew build
test fails. https://github.com/yshrsmz/kgql/blob/kotlin1.3.71-builderror/kgql-gradle-plugin/src/test/kotlin/com/codingfeline/kgql/gradle/KgqlPluginTest.kt#L166-L181 The weirdest part is, this test some time passes. It fails almost all the time, but sometimes it succeeds.
The generate task is a dependency of multiplatform ios target - X64
ilya.matveev04/01/2020, 12:11 PM
yshrsmz04/03/2020, 9:31 AM
or it is fortunately succeeding several times in row)
ilya.matveev04/09/2020, 7:59 AM
. For some reason dependencies added to the
source set were not written to metadata for the published
artifact. So the cache builder cannot compile caches due to the missing dependencies. This behaviour is observed only when the
source set is added to compilations using the
method. If you specify a
relation between platform source sets and
instead of using the
method, the dependencies become correct and the cache builder works fine. Please note that using the
relation is the recommended way to configure a source set hierarchy. So, the patch attached should fix your problem. After that you may enable the caching back.
yshrsmz04/09/2020, 1:19 PM
does not exist in dependencies when I use
, and exists when I use
. Out of curiosity, is this something that will be fixed?
ilya.matveev04/09/2020, 1:25 PM
is another guy, let's not disturb him 🙂 My nickname is @ilya.matveev.
yshrsmz04/09/2020, 1:26 PM