From 92f525ecf4ea8a9bd356acd1d3845074b1e5b918 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 25 Mar 2009 21:05:42 +0000 Subject: * Negative caching, i.e. caching of build failures. Disabled by default. This is mostly useful for Hydra. --- nix.conf.example | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'nix.conf.example') diff --git a/nix.conf.example b/nix.conf.example index e7f8adcab631..5b6d5b87fe9d 100644 --- a/nix.conf.example +++ b/nix.conf.example @@ -154,6 +154,22 @@ #build-chroot-dirs = /dev /dev/pts /proc +### Option `build-cache-failure' +# +# If this option is enabled, Nix will do negative caching; that is, it +# will remember failed builds, and won't attempt to try to build them +# again if you ask for it. Negative caching is disabled by default +# because Nix cannot distinguish between permanent build errors (e.g., +# a syntax error in a source file) and transient build errors (e.g., a +# full disk), as they both cause the builder to return a non-zero exit +# code. You can clear the cache by doing `rm -f +# /nix/var/nix/db/failed/*'. +# +# Example: +# build-cache-failure = true +#build-cache-failure = false + + ### Option `system' # # This option specifies the canonical Nix system name of the current -- cgit 1.4.1