Keep build manifest directories owned by the host
This commit is contained in:
1 parent
d96b950901
commit
eb001edc2e
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user