From 52c37b1fd5df0af7adf4eda335af73ebe6fd3f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Wed, 18 Feb 2026 21:10:17 +0100 Subject: [PATCH] fix(push-nix-cache): avoid nix S3 backend aws-chunked issue via file cache + aws s3 sync --- push-nix-cache/action.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/push-nix-cache/action.yaml b/push-nix-cache/action.yaml index bd9edac..bc79e91 100644 --- a/push-nix-cache/action.yaml +++ b/push-nix-cache/action.yaml @@ -26,7 +26,8 @@ runs: run: | echo "${NIX_SIGNING_KEY}" > /tmp/nix-key nix store sign -k /tmp/nix-key --recursive "${{ inputs.store-path }}" - nix copy \ - --to "s3://${{ inputs.s3-bucket }}?endpoint=${{ inputs.s3-endpoint }}" \ - "${{ inputs.store-path }}" rm /tmp/nix-key + nix copy --to "file:///tmp/nix-cache" "${{ inputs.store-path }}" + aws s3 sync /tmp/nix-cache \ + "s3://${{ inputs.s3-bucket }}" \ + --endpoint-url "${{ inputs.s3-endpoint }}"