Colin White
01/12/2024, 7:22 AM1.9.20
and the warning becomes an error in Kotlin `2.0.0-Beta2`:
w: Kotlin Source Set 'androidInstrumentedTest' can't depend on 'commonTest' as they are from different Source Set Trees.
Please remove this dependency edge.
Has anyone else run into this and knows how to fix? Here’s the surrounding code.mbonnin
01/12/2024, 9:57 AMVampire
01/12/2024, 9:59 AMmbonnin
01/12/2024, 10:01 AMcommonTest
sourceSet that is included from 2 compilations. I think this is what triggers the warningmbonnin
01/12/2024, 10:02 AMexpect
/`actual` (the tests rely on a expect fun httpClient(): HttpClient
function)mbonnin
01/12/2024, 10:06 AMmbonnin
01/12/2024, 10:17 AMthe warning becomes an error in KotlinInterestingly, we're still able to compile with the warning in latest Apollo Kotlin 🤔
mbonnin
01/12/2024, 10:17 AM> Configure project :engine
w: Kotlin Source Set 'ktorTest' can't depend on 'commonTest' as they are from different Source Set Trees.
mbonnin
01/12/2024, 10:18 AMColin White
01/12/2024, 8:10 PMthe warning becomes an error in Kotlin@mbonnin I ran into this as part of updating Zipline for K2. We’re currently ignoring it on
1.9.22
, but the Android build fails on 2.0.0-Beta2
with this, which seems related:
e: Files '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/testUtilEngine.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/ZiplineServiceTypeTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/FlowTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/EncodingTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/SampleService.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/ZiplineServiceTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/internal/SignaturePayloadTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/internal/bridge/SerialNameTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/internal/TopologicalSortTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/EventListenerEndpointTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/ServiceMemberTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/QuickJsCompileTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/QuickJsOutboundChannelTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/QuickJsInboundChannelTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/ZiplineManifestTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/EndpointPropertiesTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/LoggingCallChannel.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/SetTimeoutTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/EndpointTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/QuickJsTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/TuningApisTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/Utf8Test.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/NoEvalTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/ManualCallEncodingTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/ExceptionsTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/SerializersTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/FinalizationRegistryTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/StateFlowTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/QuickJsInterruptTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/ZiplineScopedEndpointTest.kt', '/Users/runner/work/zipline/zipline/zipline/src/hostTest/kotlin/app/cash/zipline/StrictModeTest.kt' can be a part of only one module, but is listed as a source for both `androidInstrumentedTest` and `hostTest`, please check you -Xfragment-sources options.
mbonnin
01/12/2024, 8:12 PMIs there any doc about this?Copy code-Xfragment-sources
mbonnin
01/12/2024, 8:16 PMefemoney
01/15/2024, 2:08 AM