diff options
| author | Olcan <[email protected]> | 2025-05-29 15:06:09 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-29 15:06:09 -0700 |
| commit | 4b7248fc462d8c64f1e79178b5c8f167ae52236d (patch) | |
| tree | 848b41665d99dc9b9d954d8c40d4de15e73e71d5 /packages/cli/src/utils/sandbox.ts | |
| parent | 5dbc83fabc0235be9ca33b838cbf60fdbdf69f19 (diff) | |
allow writing to user cache directory on macos (fixes use of lyria mcp server [to generate songs] under seatbelt) (#600)
Diffstat (limited to 'packages/cli/src/utils/sandbox.ts')
| -rw-r--r-- | packages/cli/src/utils/sandbox.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/cli/src/utils/sandbox.ts b/packages/cli/src/utils/sandbox.ts index 51499f2b..583c3ca8 100644 --- a/packages/cli/src/utils/sandbox.ts +++ b/packages/cli/src/utils/sandbox.ts @@ -236,6 +236,8 @@ export async function start_sandbox(sandbox: string) { `TMP_DIR=${fs.realpathSync(os.tmpdir())}`, '-D', `HOME_DIR=${fs.realpathSync(os.homedir())}`, + '-D', + `CACHE_DIR=${fs.realpathSync(execSync(`getconf DARWIN_USER_CACHE_DIR`).toString().trim())}`, '-f', profileFile, 'bash', |
