Follow-up question: where is the script cache loca...
# scripting
l
Follow-up question: where is the script cache located? I'd like to not pay the price of compilation each time (which is measured in tens of seconds).
1
m
It's in
~/Library/Cache/main.kts.compiled.cache
on MacOS, cf https://github.com/Kotlin/kotlin-script-examples/pull/9/files
👀 1
l
Would be nice to make a custom GitHub Action that caches that
I mean, one that we could add into our workflow files, pretty much like the new official Gradle one
Do you have any idea on how the names of the cached files are calculated? Wondering if there's a way to predict it and be able to detect when an entry should be removed.
m
Ideally, the logic should be in
kotlin
itself since it knows about everything: •
kotlin --script-cache-remove myscript.main.kts
kotlin --script-cache-remove-all
But I don't really know otherwise, sorry
l