Clean old build artifacts #49
Labels
assets
Build pipelines for specific asset types
cli
Trunk CLI application
enhancement
New feature or request
good first issue
Good for newcomers
ready
Ready to be implemented
Milestone
Currently, Trunk will continue to accumulate artifacts in the
dist
dir as changes continue to take place. This can be a bit overwhelming, and is something we should clean-up.One approach may be to build a manifest of paths generated per build. At the very end of the build, we will go through the
dist
dir and remove anything which was not generated as part of the current build.proposed design
dist
, let's call it.current
, which represents the artifacts being accumulated in the current build.dist/.current
will be deleted before any new build is started.dist
dir (except for the.current
dir), and then immediately move all of the contents ofdist/.current
up intodist
.This will ensure that we do not continuously accumulate artifacts as builds take place, and will also ensure that artifacts are not prematurely deleted in case of application compilation errors on the user's behalf.
The text was updated successfully, but these errors were encountered: