This commit is contained in:
Graham Christensen 2024-01-18 12:23:19 -05:00
parent 8487ace9a3
commit 24f6adfb73
2 changed files with 2 additions and 2 deletions

2
dist/index.js generated vendored
View file

@ -12140,7 +12140,7 @@ function getCacherUrl() {
async function fetchAutoCacher() { async function fetchAutoCacher() {
const binary_url = getCacherUrl(); const binary_url = getCacherUrl();
coreExports.info(`Fetching the Magic Nix Cache from ${binary_url}`); 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); 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). // 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); const last_path = paths.at(-2);

View file

@ -61,7 +61,7 @@ async function fetchAutoCacher() {
const binary_url = getCacherUrl(); const binary_url = getCacherUrl();
core.info(`Fetching the Magic Nix Cache from ${binary_url}`); 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); const paths = stdout.split(os.EOL);