Guard make distclean against local/ overlay source deletion

make distclean now documents that local/ is protected and will NOT be deleted. Add make distclean-nuclear as the only path that can touch local overlay sources (requires REDBEAR_ALLOW_LOCAL_UNFETCH=1). Add unfetch risk comments in mk/repo.mk for local overlay recipes.
This commit is contained in:
2026-04-22 22:00:34 +01:00
parent 9820a860ac
commit cf21b84863
2 changed files with 30 additions and 0 deletions
+8
View File
@@ -168,6 +168,14 @@ rebuild-push: $(FSTOOLS_TAG) FORCE
$(MAKE) repo
$(MAKE) push
# WARNING: unfetch deletes the recipe source tree.
# For local overlay recipes (symlinked into local/), this will delete
# source code in local/recipes/ that may not be recoverable.
# The repo binary now guards against this, but verify with --dry-run first.
# WARNING: unfetch --all deletes ALL recipe source trees.
# For local overlay recipes (symlinked into local/), this will delete
# source code in local/recipes/ that may not be recoverable.
# The repo binary now guards against this for local overlays.
# Invoke unfetch for one or more targets separated by comma
u.%: $(FSTOOLS_TAG) FORCE
ifeq ($(PODMAN_BUILD),1)