fix(ci): repair broken quoting in publish-aur docker heredoc (#50)
The docker block runs as '/bin/bash -c "<multi-line script>"'. A comment inside the script contained embedded double quotes: # "makepkg -od" fetches the source first so pkgver() can calculate the version. The first embedded '"' prematurely closes the outer string. Bash then parses the remainder into a second argument to 'bash -c' which becomes $0 inside the container and is silently discarded. Net effect: the in-container script stops at 'git config --add safe.directory', neither 'makepkg -od' nor 'makepkg --printsrcinfo > .SRCINFO' ever run, and the host-side 'git add PKGBUILD .SRCINFO' fails with: fatal: pathspec '.SRCINFO' did not match any files This bug was masked by the earlier ownership bug fixed in #49 — once that permission error was removed, this one surfaced. Fix: drop the embedded double quotes from the comment. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit was merged in pull request #50.
This commit is contained in:
2
.github/workflows/publish-aur.yml
vendored
2
.github/workflows/publish-aur.yml
vendored
@@ -131,7 +131,7 @@ jobs:
|
|||||||
chown -R builduser:builduser /pkg
|
chown -R builduser:builduser /pkg
|
||||||
cd /pkg
|
cd /pkg
|
||||||
sudo -u builduser git config --global --add safe.directory '*'
|
sudo -u builduser git config --global --add safe.directory '*'
|
||||||
# "makepkg -od" fetches the source first so pkgver() can calculate the version.
|
# makepkg -od fetches the source first so pkgver() can calculate the version.
|
||||||
sudo -u builduser makepkg -od && sudo -u builduser makepkg --printsrcinfo > .SRCINFO
|
sudo -u builduser makepkg -od && sudo -u builduser makepkg --printsrcinfo > .SRCINFO
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user