GNU bug report logs - #18747
"preferLocalBuild" fails to distinguish between offload and substitute

Previous Next

Package: guix;

Reported by: ludo <at> gnu.org (Ludovic Courtès)

Date: Thu, 16 Oct 2014 15:27:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: ludo <at> gnu.org (Ludovic Courtès)
To: 18747 <at> debbugs.gnu.org
Subject: bug#18747: Fixed-output derivations are not substituted
Date: Thu, 16 Oct 2014 17:46:18 +0200
ludo <at> gnu.org (Ludovic Courtès) skribis:

> Initially #:local-build? (aka. ‘preferLocalBuild’) meant “avoid
> offloading this derivation”, but Nix commit 55586527 (June 2013) changed
> it to “avoid offloading *or substituting* this derivation”, which I
> somehow overlooked for all this time.

The relevant code is in libstore/build.cc:

--8<---------------cut here---------------start------------->8---
    /* We are first going to try to create the invalid output paths
       through substitutes.  If that doesn't work, we'll build
       them. */
    if (settings.useSubstitutes && !willBuildLocally(drv))
        foreach (PathSet::iterator, i, invalidOutputs)
            addWaitee(worker.makeSubstitutionGoal(*i, buildMode == bmRepair));
--8<---------------cut here---------------end--------------->8---

Ludo’.




This bug report was last modified 9 years and 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.