Skip to content

Conversation

@saylesss88
Copy link
Contributor

What This Does

builders-use-substitutes = true: Ensures that when using remote builders, they can fetch and use prebuilt binaries from the cache.

substituters: Explicitly sets the URL for the main binary cache, guaranteeing Nix looks for prebuilt binaries there first.

trusted-public-keys: Validates binaries from cache.nixos.org for security and authenticity.

How This May Help

Addresses Cache Issues: If your persistent rebuilds are due to Nix not using the official binary cache, this configuration ensures the cache is enabled and trusted.

Reduces Unnecessary Builds: Proper cache settings prevent repeated source builds when otherwise cache hits should occur.

It is unusual for JS to have to build more than once if there weren't any updates or refactors, this should help.

What This Does

`builders-use-substitutes = true`: Ensures that when using remote builders, they can fetch and use prebuilt binaries from the cache.

substituters: Explicitly sets the URL for the main binary cache, guaranteeing Nix looks for prebuilt binaries there first.

trusted-public-keys: Validates binaries from cache.nixos.org for security and authenticity.

How This May Help

Addresses Cache Issues: If your persistent rebuilds are due to Nix not using the official binary cache, this configuration ensures the cache is enabled and trusted.

Reduces Unnecessary Builds: Proper cache settings prevent repeated source builds when otherwise cache hits should occur.

It is unusual for JS to have to build more than once if there weren't any updates or refactors, this should help.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant