From 014d965ad5bd2cb4b070925c6895daa632568add Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Mon, 13 Nov 2023 22:26:58 +0100 Subject: [PATCH] `--stdin` flag for nix copy does not always exists (#36) it is safer to use xargs --- .github/workflows/ci.yml | 1 - scripts/push-new-nix-store-paths.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0184ad1..cde2da4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: pull_request: push: branches: - - "fix-macos-cache" - "main" - "releases/*" schedule: diff --git a/scripts/push-new-nix-store-paths.sh b/scripts/push-new-nix-store-paths.sh index 2cc4f8e..c5d0d6f 100755 --- a/scripts/push-new-nix-store-paths.sh +++ b/scripts/push-new-nix-store-paths.sh @@ -26,4 +26,4 @@ fi echo "$NEW_STORE_PATHS_FILE_COUNT new paths will be pushed"; # Allow pushing to fail. -cat "$NEW_STORE_PATHS_FILE" | tr '\n' ' ' | nix copy --extra-experimental-features nix-command --to "$FLOX_SUBSTITUTER" --stdin -vv ||:; +cat "$NEW_STORE_PATHS_FILE" | xargs -r nix copy --extra-experimental-features nix-command --to "$FLOX_SUBSTITUTER" -vv||:;