From 0ae2f036b70ff8456363e17c61a56ab6f3ea8260 Mon Sep 17 00:00:00 2001 From: alvinlollo Date: Sun, 11 Oct 2026 16:25:17 +1100 Subject: [PATCH] fix(ci): Stop bash -e from killing the conflict check silently The `pacman -S` in the conflict check exits non-zero by design (a conflict fails in prepare, a clean list fails at the disabled download), and `OUT=$(...)` carries that status, so `bash -e` aborted the step before the output was inspected: exit 1 with no message on every run. Ignore the status and judge by the output, as intended. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/tests.yaml | 4 +++- CLAUDE.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 120000 CLAUDE.md diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index dc7c118..6633f5a 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -350,7 +350,9 @@ jobs: if [ ${#PKGS[@]} -eq 0 ]; then echo "✅ No resolvable packages to check." else - OUT=$(pac -S --noconfirm --root "$ROOT" --cachedir "$ROOT" "${PKGS[@]}" 2>&1) + # pacman exits non-zero either way; judge by its output, not + # its status (bash -e would otherwise kill the step silently) + OUT=$(pac -S --noconfirm --root "$ROOT" --cachedir "$ROOT" "${PKGS[@]}" 2>&1) || true if grep -q 'failed to prepare transaction' <<< "$OUT"; then echo "------- Pacman Output -------" grep -vE '^(http|file|ftp)' <<< "$OUT" | tail -40 diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000..47dc3e3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file