Skip to content

aur: retry a failed AUR build once; don't abort post-install on one app - #204

Merged
VictorGSchneider merged 1 commit into
mainfrom
claude/magical-newton-wektcw
Oct 21, 2026
Merged

VictorGSchneider merged 1 commit into
mainfrom
claude/magical-newton-wektcw

Conversation

@VictorGSchneider

Copy link
Copy Markdown
Owner

Problem

post-install.sh failed on YACReader. yay builds dependencies first. When libpdfium-nojs hit a transient download error in prepare() (curl: (23) / base64: invalid input), yay retried that dependency and installed it, but it had already dropped yacreader with "Missing dependencies". The yay failure also stopped the whole script, because it runs with set -e.

Changes

  • setup/lib/aur.sh: _install_aur retries the build once. If both attempts fail, it prints a warning, adds the package to _aur_failed and returns 1. Before this change it printed [✓] installed no matter what happened, and the makepkg fallback ignored clone and build errors.
  • setup/post-install.sh: a failure in one optional AUR app no longer stops the script (|| true). Failed packages are listed with a yay -S … retry hint at the end of the AUR step.
  • enable-limine-snapshots.sh still aborts when its required AUR packages fail.

Testing

  • bash -n on both scripts.
  • Tested under set -e with a fake yay that fails once and then succeeds: the retry succeeds. With one that always fails: post-install continues, while the strict call site exits with status 1.

Generated by Claude Code

yay builds dependencies first; when one fails transiently (libpdfium-nojs
hit a broken download in prepare()), yay retries the dependency but drops
the package that needs it (yacreader: "Missing dependencies"). Under
set -e that aborted the whole post-install.

_install_aur now retries once and returns 1 (recording the pkg in
_aur_failed) if both attempts fail. post-install tolerates failures of
its optional AUR apps and lists them at the end; enable-limine-snapshots
still aborts, since it needs its packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pNTgiWNwQg9cE63aUxicE
@VictorGSchneider VictorGSchneider self-assigned this Oct 21, 2026
@VictorGSchneider
VictorGSchneider merged commit a1e0d5f into main Oct 21, 2026
3 checks passed
@VictorGSchneider
VictorGSchneider deleted the claude/magical-newton-wektcw branch October 21, 2026 00:34
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