Skip to content

Commit

Permalink
Enable fallback=true by default
Browse files Browse the repository at this point in the history
Handles a 429 / ratelimit error more gracefully.
  • Loading branch information
grahamc committed Jun 26, 2023
1 parent dd9ea13 commit d088ac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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&parallel-compression=true${"\n"}`);
writeSync(nixConf, `fallback = true${"\n"}`);
close(nixConf);

core.debug('Launched Magic Nix Cache');
Expand Down

0 comments on commit d088ac6

Please sign in to comment.