Giter Site home page Giter Site logo

Comments (5)

cole-h avatar cole-h commented on June 23, 2024 1

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.

WxNzEMof avatar WxNzEMof commented on June 23, 2024

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.

WxNzEMof avatar WxNzEMof commented on June 23, 2024

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.

cole-h avatar cole-h commented on June 23, 2024

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.

WxNzEMof avatar WxNzEMof commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.