From eb001edc2e90fd4c84688615f44fa790b3c2e38f Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 14 Sep 2026 02:35:18 -0400 Subject: [PATCH] Keep build manifest directories owned by the host --- bin/build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/build b/bin/build index 5c8eba8..728852b 100755 --- a/bin/build +++ b/bin/build @@ -238,6 +238,9 @@ PACKAGE_CACHE_DIR="$BUILD_ROOT/cache/pacman/$MIRROR/$ARCH" mkdir -p "$PACKAGE_CACHE_DIR" PLAN_DIR=$(mktemp -d "$SRC_DIR/build-plan.XXXXXX") trap 'rm -rf "$PLAN_DIR"' EXIT +# Keep manifest directories host-owned so cleanup also works when Docker's +# builder uid differs from the caller (as on GitHub runners). +mkdir -p "$PLAN_DIR/artifacts" # Rootful Docker writes as the image uid, so retain its existing permission # workaround. Rootless Podman uses keep-id and must leave ownership/modes alone.