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);