Comments (5)
You may want to rerun the second invocation with --narinfo-cache-negative-ttl 0
. It's likely Nix is querying the substituter, noticing that it doesn't have the path, and then storing the fact it wasn't there in the database (so that it doesn't need to do slow networking every time and ask the substituter for a path it doesn't (didn't) have).
from nix.
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 /nix/var
and couldn't find any relevant mentions of the cache.
from nix.
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.
from nix.
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 ~root/.cache/nix
(usually that's just /root/.cache/nix
).
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.
from nix.
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
~root/.cache/nix
(usually that's just/root/.cache/nix
).
I did not think to look there. Thank you!
from nix.
Related Issues (20)
- NixOS Graphical ISO image DNS ERROR on cache.nixos
- macOS installer: upcoming UID clash on macOS 15 Sequoia HOT 16
- Installer error on Google Project IDX, sudo command not found HOT 4
- Detect remote `systemFeatures` automatically
- .lock files incorrectly block the build process HOT 2
- nix-copy-closure to ssh:// store tries to log in with empty SSH username
- Mixed C++ and preprocessor directive indentation
- -Wdeprecated
- C API: Split test suite, headers into C++-independent component HOT 1
- Unable to build after update to Vicuña HOT 1
- _nixbld 1 through 4 have disappeared HOT 1
- fetchTarball accepts ISO images (and likely many unexpected archive formats) HOT 1
- `installer` CI job broken
- Creating Nix user on MacOS HOT 1
- Unable to run Nix Flake on Mac M1
- garbage-collection internals are not documented / toString produces store path without context HOT 1
- Regression test for #10916, run as root, about read only store
- HTTPS store TLS certificate pinning
- flag to check `nix develop` is working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix.