mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2025-01-10 14:12:03 +01:00
le sigh
This commit is contained in:
parent
8487ace9a3
commit
24f6adfb73
2 changed files with 2 additions and 2 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue