-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 sometimes does not use configured substituters after a garbage collection #10926
Comments
You may want to rerun the second invocation with |
Yes, that was it. Thank you! Where is that persisted? I tried to delete ~/.cache/nix before every invocation (which didn't work) and checked every file in |
Also, would it make sense to add some logging for this? I couldn't see any explanation for why it was making that decision even at the maximum log level. |
Something to keep in mind is that, when running Nix as a daemon, it is essentially running as root, so you'd also need to have cleared EDIT: But yeah, if there isn't already logging about this, there probably should be. I can try to have a look at that later. |
I did not think to look there. Thank you! |
Describe the bug
Nix sometimes does not use configured substituters after a garbage collection.
Steps To Reproduce
nix-build -vv --no-out-link -E 'let pkgs = import <nixpkgs> {} ; in pkgs.stdenv.mkDerivation { name="test1237"; dontUnpack = true; buildPhase = "echo OK > $out"; }'
nix-store --gc
)Expected behavior
It should grab it from the binary cache, something like this:
Actual behavior
For some reason it sometimes doesn't check the substituter at all.
nix-env --version
outputnix-env (Nix) 2.17.1
Additional context
Trying to setup up a binary cache at $dayjob and it's not looking good :(
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: