[Nix-dev] failing builder aborts other builds

Florian Friesdorf flo at chaoflow.net
Tue Dec 20 11:25:23 CET 2011


On Tue, 20 Dec 2011 11:02:11 +0100, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> Hi,
> 
> On 20/12/11 09:53, Florian Friesdorf wrote:
> 
> > for parallel builds/downloads, one failing builder will kill all other
> > parallel builds (see below). I think it would be great if:
> > - an error message is printed
> > - the failing build is noted
> > - all parallel builds continue
> > - all builds that do not depend on the failed one are done
> > - and nix finally exits listing the accumulated errors
> ...
> > Opinions? What would it take to implement?
> 
> There already is the ‘--keep-going’ (-k) flag, which does most of what you want.

'nix-env --help' does not list it and 'man nix-env' has no explanation
for it.

Though, I must admit it sounds pretty self-explanatory - thx for the pointer!

Also I now found it in the nix manual under A.1 Common options:

--keep-going, -k

    Keep going in case of failed builds, to the greatest extent
    possible. That is, if building an input of some derivation fails,
    Nix will still build the other inputs, but not the derivation
    itself. Without this option, Nix stops if any build fails (except
    for builds of substitutes), possibly killing builds in progress (in
    case of parallel or distributed builds).

Is there a nix option for nix.extraOptions to make this the default for
all relevant commands?

-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20111220/d3ff9c91/attachment.bin 


More information about the nix-dev mailing list