aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2021-03-12 00:24:21 -0600
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-26 16:42:29 +0300
commitb6d277c140c7cbec3349bf5bd5986fc79f804e42 (patch)
treefc2e7dfdc44255c31bfdd68900ae928c3504993f /docs
parenta10a6284d2afc8657f94cd1f0833ce49edd50e35 (diff)
downloadmeson-b6d277c140c7cbec3349bf5bd5986fc79f804e42.zip
meson-b6d277c140c7cbec3349bf5bd5986fc79f804e42.tar.gz
meson-b6d277c140c7cbec3349bf5bd5986fc79f804e42.tar.bz2
Add 'subprojects purge' command
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/subprojects_purge.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/markdown/snippets/subprojects_purge.md b/docs/markdown/snippets/subprojects_purge.md
new file mode 100644
index 0000000..86e1064
--- /dev/null
+++ b/docs/markdown/snippets/subprojects_purge.md
@@ -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.