[Nix-dev] When did nix start to do negative build caching by default, and how to undo it?

Bjørn Forsman bjorn.forsman at gmail.com
Sat Apr 26 00:10:22 CEST 2014


On 24 April 2014 10:22, Eelco Dolstra <eelco.dolstra at logicblox.com> wrote:
> Hi,
>
> On 23/04/14 22:57, Bjørn Forsman wrote:
>
>> On 23 April 2014 22:47, Bjørn Forsman <bjorn.forsman at gmail.com> wrote:
>> [...]
>>> Any ideas about 1) when/why nix started doing negative caching by
>>> default and 2) why "nix-store --clear-failed-paths" doesn't work?
>>
>> Mystery 1) solved. I looked in /etc/nix/nix.conf and found
>>
>>   # Hydra needs caching of build failures.
>>   build-cache-failure = true
>>
>> I have (attempted to) setup a hydra instance on my system, and it
>> seems to have added the above config lines.
>>
>> Still wondering about question 2 though.
>
> Try "nix-store --clear-failed-paths '*'" (it needs an argument).

Thanks, that worked!

TODO: make nix-store complain and exit with non-zero status if called
without any path arguments.

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list