Closed expipiplus1 closed 4 years ago
This doesn't happen if cached-nix-shell
is given the argument default.nix
explicitly.
I guess this is happening because nix-shell
is checking the current directory for the presence of default.nix
or shell.nix
Perhaps the title isn't fair, it's correctly invalidated because indeed the contents of the directory have changed, however it would be possible to be more specific here.
How embarrassing, I seem to be unable to reproduce this, sorry.
Take for example the following derivation
To reproduce:
default.nix
in an otherwise empty directoryfoo
cached-nix-shell
cached-nix-shell
again and observe that the cache is workingtouch a
cached-nix-shell
and observe that althougha
is not in the source directoryfoo
the cache is still invalidatedcached-nix-shell: "/home/j/projects/bugs/cached-nix-shell": expected "bc9d52f13592f11e33761497c538180e", got "cad355673ba8cdb0ef003c8515174e77"