ci: isolate AUR workflow home directory #6

Merged
barrettruth merged 1 commit from ci/forgejo-aur-temp-home into main 2026-05-02 03:32:26 +00:00
Owner

Summary

  • set a temporary HOME/XDG_CONFIG_HOME while generating .SRCINFO
  • set a temporary HOME/XDG_CONFIG_HOME while pushing to AUR
  • avoid git config --global writes in Forgejo runner jobs

Verification

  • nix-shell -p yq-go --run "yq eval . .forgejo/workflows/aur.yaml >/dev/null"
  • HOME=$(mktemp -d) XDG_CONFIG_HOME=$HOME/.config nix-shell -p pacman git --run "makepkg --config /etc/makepkg.conf --printsrcinfo"
  • git diff --check

Follow-up to #5: manual dispatch run #2 reached the .SRCINFO generation step and failed because the runner tried to write /home/barrett/.config/git/config, which is Nix-managed/read-only.

## Summary - set a temporary HOME/XDG_CONFIG_HOME while generating .SRCINFO - set a temporary HOME/XDG_CONFIG_HOME while pushing to AUR - avoid git config --global writes in Forgejo runner jobs ## Verification - nix-shell -p yq-go --run "yq eval . .forgejo/workflows/aur.yaml >/dev/null" - HOME=$(mktemp -d) XDG_CONFIG_HOME=$HOME/.config nix-shell -p pacman git --run "makepkg --config <nix pacman>/etc/makepkg.conf --printsrcinfo" - git diff --check Follow-up to #5: manual dispatch run #2 reached the .SRCINFO generation step and failed because the runner tried to write /home/barrett/.config/git/config, which is Nix-managed/read-only.
barrettruth deleted branch ci/forgejo-aur-temp-home 2026-05-02 03:32:26 +00:00
Sign in to join this conversation.
No description provided.