serebit
08/04/2020, 5:16 PM.konan/cache
directory from being deleted, like a Gradle property of some sort? This is for CI, where caching the tarballs directly and unpacking them each time would be optimal.svyatoslav.scherbina
08/05/2020, 10:47 AMIs there a way to prevent the dependency tarballs in theI don’t think so. Does anything prevent you from preserving the entiredirectory from being deleted, like a Gradle property of some sort?.konan/cache
.konan
directory on CI?serebit
08/05/2020, 4:34 PMserebit
08/05/2020, 5:06 PMsvyatoslav.scherbina
08/06/2020, 9:14 AMThe main reason I’d rather just keep the cached tarballs is because it’s both a time and cycle waste to re-compress those dependencies every time a CI job runsIf you just reuse the entire
.konan
directory for different invocation, you won’t need to re-compress the dependencies.
Note that you can override the location of .konan
directory using KONAN_DATA_DIR
environment variable.serebit
08/06/2020, 4:40 PM.konan
directory) are compressed into a zip file for storage until the next CI job runs. If I choose to cache the entire .konan
directory, including the decompressed dependencies, my PC will have to spend time re-compressing all the dependency files every time, and this takes a pretty substantial amount of time in comparison to just keeping the tarballs. I'm already using the KONAN_DATA_DIR
environment variable for the alternate solution, which is packing the tarballs into the Docker image when it's built, but it would be way easier for me (and save on my bandwidth) if I could just make the tarballs persist. Does that make sense?svyatoslav.scherbina
08/07/2020, 8:43 AM.konan
into a zip?serebit
08/07/2020, 10:26 PMserebit
08/07/2020, 10:31 PM.konan
directory, I'd just cache the dependencies
directory along with the kotlin-native-x
directory.svyatoslav.scherbina
08/10/2020, 7:40 AM