From 8e8ff90bd604df3e5ce5eba5a08f246c131a3aa3 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 16 Jun 2024 20:52:16 -0600 Subject: [PATCH] Use full path when accessing attic --- src/stages/configure.ts | 4 ++-- src/stages/install.ts | 2 +- src/stages/push.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stages/configure.ts b/src/stages/configure.ts index b427bf6..79fe778 100644 --- a/src/stages/configure.ts +++ b/src/stages/configure.ts @@ -12,13 +12,13 @@ export const configure = async () => { const skipUse = core.getInput("skip-use"); core.info("Logging in to attic cache"); - await exec("attic", ["login", "--set-default", cache, endpoint, token]); + await exec("/run/current-system/sw/bin/attic", ["login", "--set-default", cache, endpoint, token]); if (skipUse === "true") { core.info("Not adding attic cache to substituters as skip-use is set to true"); } else { core.info("Adding attic cache to substituters"); - await exec("attic", ["use", cache]); + await exec("/run/current-system/sw/bin/attic", ["use", cache]); } core.info("Collecting store paths before build"); diff --git a/src/stages/install.ts b/src/stages/install.ts index 2b180ac..38d244d 100644 --- a/src/stages/install.ts +++ b/src/stages/install.ts @@ -35,6 +35,6 @@ export const install = async () => { }; export const isInstalled = async () => { - let return_code = await exec("attic", ["-V"]); + let return_code = await exec("/run/current-system/sw/bin/attic", ["-V"]); return return_code === 0; }; diff --git a/src/stages/push.ts b/src/stages/push.ts index f13e1fd..9d10ceb 100644 --- a/src/stages/push.ts +++ b/src/stages/push.ts @@ -28,7 +28,7 @@ export const push = async () => { const splitAddedPaths = splitArray(addedPaths, 25); for (const addedPaths of splitAddedPaths) { - await exec("attic", ["push", cache, ...addedPaths]); + await exec("/run/current-system/sw/bin/attic", ["push", cache, ...addedPaths]); } } } catch (e) {