Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix.binaryCaches: always set https://cache.nixos.org #63810

Merged
merged 1 commit into from Jun 26, 2019

Conversation

domenkozar
Copy link
Member

@domenkozar domenkozar commented Jun 26, 2019

There are many support questions when people add a new binary cache
and they suddenly lose nixos substitutions.

Most of the users want to keep that, so we're doing a breaking change.

Previously to disable all binary caches one had to do:

  nix.binaryCache = [];

Now the same is possible via:

  nix.binaryCache = lib.mkForce [];

TODO

  • nixos changelog
  • test

There are many support questions when people add a new binary cache
and they suddenly lose nixos substitutions.

Most of the users want to keep that, so we're doing a breaking change.

Previously to disable all binary caches one had to do:

  nix.binaryCache = [];

Now the same is possible via:

  nix.binaryCache = lib.mkForce;
@domenkozar domenkozar requested a review from edolstra June 26, 2019 15:44
@edolstra edolstra merged commit 8e620e1 into master Jun 26, 2019
aszlig added a commit to openlab-aux/vuizvui that referenced this pull request Jun 26, 2019
Besides using the default value from options, I could have just used
mkOptionDefault back then when I was writing this, but fortunately using
the default attribute from the option itself now resulted in an eval
error.

Had I used mkOptionDefault, the value just would have been silently
changed to the default value, since in
NixOS/nixpkgs#63810 the default value now has
priority 1000 instead of 1500 (mkOptionDefault).

So since there is no longer an option default, we now can just set our
binary cache in a singleton list (with priority 100) and be done.

Signed-off-by: aszlig <aszlig@nix.build>
@domenkozar domenkozar deleted the binaryCaches-default branch February 20, 2020 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants