This will help facilitate cache busting in certain situations, and replaces hand-rolled solutions of writing a length command to remove various files/folders within the subprojects directory.pull/8698/head
parent
a10a6284d2
commit
b6d277c140
3 changed files with 109 additions and 4 deletions
@ -0,0 +1,18 @@ |
||||
## Purge subprojects folder |
||||
|
||||
It is now possible to purge a subprojects folder of artifacts created |
||||
from wrap-based subprojects including anything in `packagecache`. This is useful |
||||
when you want to return to a completely clean source tree or busting caches with |
||||
stale patch directories or caches. By default the command will only print out |
||||
what it is removing. You need to pass `--confirm` to the command for actual |
||||
artifacts to be purged. |
||||
|
||||
By default all wrap-based subprojects will be purged. |
||||
|
||||
- `meson subprojects purge` prints non-cache wrap artifacts which will be |
||||
purged. |
||||
- `meson subprojects purge --confirm` purges non-cache wrap artifacts. |
||||
- `meson subprojects purge --confirm --include-cache` also removes the cache |
||||
artifacts. |
||||
- `meson subprojects purge --confirm subproj1 subproj2` removes non-cache wrap |
||||
artifacts associated with the listed subprojects. |
Loading…
Reference in new issue