From 24f6adfb736cf0c57ab0714a653acd896b58c161 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 18 Jan 2024 12:23:19 -0500 Subject: [PATCH] le sigh --- dist/index.js | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 242137e..5831399 100644 --- a/dist/index.js +++ b/dist/index.js @@ -12140,7 +12140,7 @@ function getCacherUrl() { async function fetchAutoCacher() { const binary_url = getCacherUrl(); coreExports.info(`Fetching the Magic Nix Cache from ${binary_url}`); - const { stdout } = await promisify$1(exec)(`curl "${binary_url}" | xz -d | nix-store --import`); + const { stdout } = await promisify$1(exec)(`curl -L "${binary_url}" | xz -d | nix-store --import`); const paths = stdout.split(os$2.EOL); // Since the export is in reverse topologically sorted order, magic-nix-cache is always the penultimate entry in the list (the empty string left by split being the last). const last_path = paths.at(-2); diff --git a/src/index.ts b/src/index.ts index beac218..cf2790e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,7 +61,7 @@ async function fetchAutoCacher() { const binary_url = getCacherUrl(); core.info(`Fetching the Magic Nix Cache from ${binary_url}`); - const { stdout } = await promisify(exec)(`curl "${binary_url}" | xz -d | nix-store --import`); + const { stdout } = await promisify(exec)(`curl -L "${binary_url}" | xz -d | nix-store --import`); const paths = stdout.split(os.EOL);