lightbend-labs / dbuild

Multi-project build tool, based on sbt.
https://lightbend-labs.github.io/dbuild
Other
83 stars 14 forks source link

Auto-clean build and extraction directories #83

Closed cunei closed 10 years ago

cunei commented 10 years ago

The build directory of dbuild currently grows uncontrollably; during development, I end up generating 50-100GB of temporary files each week, which are never reclaimed.

Conversely, when launched dbuild should take care of automatically removing the build and extraction files that are older than a certain configurable threshold (for instance, 3 days for successful builds, 10 days for failed builds (unless we are trying to rebuild the same uuids, in which case the timestamp should just be updated)).

In addition, dbuild should ideally also emit a warning when target directories and caches of previous versions are found, as those directories are versioned and would live indefinitely unless removed manually.

jsuereth commented 10 years ago

:) I think I had a note about a GC at some point.