Skip to content

fix: restore host ownership in AUR publish docker step#1225

Open
bplatz wants to merge 1 commit into
mainfrom
fix/aur-publish-ownership
Open

fix: restore host ownership in AUR publish docker step#1225
bplatz wants to merge 1 commit into
mainfrom
fix/aur-publish-ownership

Conversation

@bplatz
Copy link
Copy Markdown
Contributor

@bplatz bplatz commented May 7, 2026

The Arch container in contrib/aur/publish.sh chowns /work to an in-container builder uid (1000) so makepkg can run as non-root, but leaves the bind-mounted AUR clone owned by that uid on exit. On the runner (uid 1001), the next host-side git add then fails with Permission denied writing .git/index.lock, and the cleanup trap can't remove the work dir either — observed in the v4.0.3 publish-aur job. Fix: pass the host uid/gid into the container and chown /work back to them before the container exits.

@bplatz bplatz requested a review from zonotope May 7, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant