From 31b4e6a50f30c7f9a8f0224f8d78e7e518387f54 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Sun, 8 Sep 2024 05:32:19 +0800 Subject: [PATCH] Update GroupEvaluator.scala --- main/eval/src/mill/eval/GroupEvaluator.scala | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/main/eval/src/mill/eval/GroupEvaluator.scala b/main/eval/src/mill/eval/GroupEvaluator.scala index af36024b2d5..fafd4eb6ba3 100644 --- a/main/eval/src/mill/eval/GroupEvaluator.scala +++ b/main/eval/src/mill/eval/GroupEvaluator.scala @@ -316,19 +316,6 @@ private[mill] trait GroupEvaluator { } } - // Remove any empty `.dest/` folders to tidy up the filesystem. Otherwise - // tasks that call `os.proc` or `T.dest` without actually doing anything with - // the folder will leave empty folders around cluttering the disk - this.synchronized { - for { - p <- usedDest - if os.list.stream(p).headOption.isEmpty - // workers can be used after they return their value and - // may need to continue working with their `T.dest`, - if !isWorker - } os.remove(p) - } - multiLogger.close() (newResults, newEvaluated) }