From c4b090ec37c26c17661fe6c098d2eeba3df53bac Mon Sep 17 00:00:00 2001 From: Darien Hernandez Date: Wed, 19 Aug 2026 10:04:39 +0200 Subject: [PATCH] fix(nix-cache-push): make attic push portable to macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `xargs -a FILE` is a GNU extension; BSD/macOS xargs rejects it with "invalid option -- a", so the push failed on macOS runners (the closure was never uploaded, though the job stayed green because the step only warns). Redirect stdin from the path list instead — portable on both. --- nix-cache-push/action.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix-cache-push/action.yaml b/nix-cache-push/action.yaml index d5d64e7..56896fa 100644 --- a/nix-cache-push/action.yaml +++ b/nix-cache-push/action.yaml @@ -84,5 +84,8 @@ runs: exit 0 fi - xargs -a "$paths" "$attic_link/bin/attic" push --jobs 4 "$CACHE" \ + # Redirect stdin from the path list rather than `xargs -a FILE`: -a is a + # GNU extension and BSD/macOS xargs rejects it, which broke the push on + # macOS runners. `< file` reads the same list and is portable. + < "$paths" xargs "$attic_link/bin/attic" push --jobs 4 "$CACHE" \ || echo "::warning::attic push failed"