Skip to content

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

Merged
bplatz merged 1 commit into
mainfrom
fix/aur-publish-ownership
May 16, 2026
Merged

fix: restore host ownership in AUR publish docker step#1225
bplatz merged 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
Copy link
Copy Markdown
Contributor

@zonotope zonotope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I could have sworn that I had approved this when you opened it. LGTM 👍🏾

@bplatz bplatz merged commit 69f4c8e into main May 16, 2026
13 checks passed
@bplatz bplatz deleted the fix/aur-publish-ownership branch May 16, 2026 21:50
@bplatz bplatz mentioned this pull request May 21, 2026
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.

2 participants