From 4bea74cb75cd602cd03b6cdc7b22c2a9ea2aa848 Mon Sep 17 00:00:00 2001 From: git-echo Date: Wed, 27 May 2026 20:42:48 -0500 Subject: [PATCH] fix: remove mkdir -p from Alpine cleanup that broke abuild - Remove mkdir -p /home/builduser/packages/home/x86_64/ that was creating root-owned directories that abuild (running as builduser) couldnt write to - Keep targeted rm -f of stale .apk files only - abuild creates its own output directories with correct ownership --- .gitea/workflows/ci.yml | 1 - build-alpine.sh | 2 -- 2 files changed, 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 00497ab..fc98ea8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -325,7 +325,6 @@ jobs: run: | rm -f releases/linux-patch-api-*.apk 2>/dev/null || true rm -f /home/builduser/packages/home/x86_64/linux-patch-api-*.apk 2>/dev/null || true - mkdir -p /home/builduser/packages/home/x86_64/ - name: Build Alpine package run: | chmod +x build-alpine.sh diff --git a/build-alpine.sh b/build-alpine.sh index 4153c14..46adb63 100644 --- a/build-alpine.sh +++ b/build-alpine.sh @@ -11,8 +11,6 @@ echo "" # Clean stale packages from previous builds rm -f releases/linux-patch-api-*.apk 2>/dev/null || true rm -f /home/builduser/packages/home/x86_64/linux-patch-api-*.apk 2>/dev/null || true -# Ensure abuild output directory exists -mkdir -p /home/builduser/packages/home/x86_64/ # Source cargo environment (for rustup-installed toolchain in CI) if [ -f "$HOME/.cargo/env" ]; then