fix(ci): skip prepare() in publish-aur metadata container (#51)
Follow-up to #49 and #50. With ownership and quoting fixed, the next run ([24199871832](https://github.com/razvandimescu/numa/actions/runs/24199871832)) reached makepkg and failed with: /pkg/PKGBUILD: line 34: cargo: command not found ==> ERROR: A failure occurred in prepare(). The publish job only installs 'binutils git sudo' since its sole purpose is to regenerate .SRCINFO. 'makepkg -od' still runs prepare(), which calls cargo. The sibling validate job avoids this by passing --noprepare (and installs rust anyway). Mirror that pattern: add --noprepare to the metadata-generation invocation. pkgver() runs before prepare() in makepkg's pipeline, so .SRCINFO still captures the computed version. Keeps the container minimal (no rust toolchain). Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit was merged in pull request #51.
This commit is contained in:
5
.github/workflows/publish-aur.yml
vendored
5
.github/workflows/publish-aur.yml
vendored
@@ -132,7 +132,10 @@ jobs:
|
||||
cd /pkg
|
||||
sudo -u builduser git config --global --add safe.directory '*'
|
||||
# makepkg -od fetches the source first so pkgver() can calculate the version.
|
||||
sudo -u builduser makepkg -od && sudo -u builduser makepkg --printsrcinfo > .SRCINFO
|
||||
# --noprepare skips the prepare() function, which invokes cargo and would
|
||||
# otherwise require a full rust toolchain in this metadata-only container.
|
||||
# pkgver() runs before prepare(), so .SRCINFO still gets the correct version.
|
||||
sudo -u builduser makepkg -od --noprepare && sudo -u builduser makepkg --printsrcinfo > .SRCINFO
|
||||
"
|
||||
|
||||
# Reclaim ownership: the in-container 'chown -R builduser:builduser /pkg'
|
||||
|
||||
Reference in New Issue
Block a user