mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-11-29 10:31:50 +03:00
Enable fallback=true by default
Handles a 429 / ratelimit error more gracefully.
This commit is contained in:
parent
dd9ea1361e
commit
d088ac6784
1
dist/index.js
generated
vendored
1
dist/index.js
generated
vendored
@ -12194,6 +12194,7 @@ async function setUpAutoCache() {
|
||||
await fs$2.mkdir(`${process.env["HOME"]}/.config/nix`, { recursive: true });
|
||||
const nixConf = openSync(`${process.env["HOME"]}/.config/nix/nix.conf`, 'a');
|
||||
writeSync(nixConf, `${"\n"}extra-substituters = http://${coreExports.getInput('listen')}/?trusted=1&compression=zstd¶llel-compression=true${"\n"}`);
|
||||
writeSync(nixConf, `fallback = true${"\n"}`);
|
||||
close(nixConf);
|
||||
coreExports.debug('Launched Magic Nix Cache');
|
||||
coreExports.exportVariable(ENV_CACHE_DAEMONDIR, daemonDir);
|
||||
|
@ -127,6 +127,7 @@ async function setUpAutoCache() {
|
||||
await fs.mkdir(`${process.env["HOME"]}/.config/nix`, { recursive: true });
|
||||
const nixConf = openSync(`${process.env["HOME"]}/.config/nix/nix.conf`, 'a');
|
||||
writeSync(nixConf, `${"\n"}extra-substituters = http://${core.getInput('listen')}/?trusted=1&compression=zstd¶llel-compression=true${"\n"}`);
|
||||
writeSync(nixConf, `fallback = true${"\n"}`);
|
||||
close(nixConf);
|
||||
|
||||
core.debug('Launched Magic Nix Cache');
|
||||
|
Loading…
Reference in New Issue
Block a user