We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96e85ce commit b05d750Copy full SHA for b05d750
src/main/kotlin/io/bazel/worker/WorkingDirectoryContext.kt
@@ -31,12 +31,14 @@ class WorkingDirectoryContext(
31
val logger: Logger = Logger.getLogger(WorkingDirectoryContext::class.java.canonicalName)
32
33
inline fun <T> use(forWork: WorkingDirectoryContext.() -> T) =
34
- WorkingDirectoryContext(Files.createTempDirectory("pwd")).use { wd ->
+ // TODO: Find a good place to persist this, keep ephemeral directory for non-incremental
35
+ WorkingDirectoryContext(java.nio.file.Paths.get("/tmp/kotlin_working_directory")).use { wd ->
36
wd.forWork()
37
}
38
39
40
override fun close() {
41
+ return
42
kotlin
43
.runCatching {
44
Files.walk(dir).sorted(Comparator.reverseOrder()).forEach(Files::delete)
0 commit comments