mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-01 16:32:45 +03:00
Comment
This commit is contained in:
parent
7fb9d0de49
commit
5e8c8cee1b
1
dist/index.js
generated
vendored
1
dist/index.js
generated
vendored
@ -12142,6 +12142,7 @@ async function fetchAutoCacher() {
|
||||
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 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);
|
||||
console.log(`stdout: ${last_path}`);
|
||||
return `${last_path}/bin/magic-nix-cache`;
|
||||
|
@ -66,6 +66,7 @@ async function fetchAutoCacher() {
|
||||
|
||||
const paths = stdout.split(os.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);
|
||||
|
||||
console.log(`stdout: ${last_path}`);
|
||||
|
Loading…
Reference in New Issue
Block a user