bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28659: Always enable substitutes for fixed-output derivations


From: Ludovic Courtès
Subject: bug#28659: Always enable substitutes for fixed-output derivations
Date: Fri, 15 Dec 2017 10:30:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

address@hidden (Ludovic Courtès) skribis:

> So I think we have to communicate more info from the daemon to ‘guix
> substitute’.

The attached patch addresses that by simply calling out to the daemon to
determine whether we’re dealing with a content-addressed item.

To summarize, the new behavior is that substitutes are always enabled
for fixed-output derivations.  That way, people willing to build
everything from source can still use ‘--no-substitutes’ and yet be able
to retrieve source code without being penalized compared to someone
enabling substitutes wholesale.

Of course, when substitutes are missing, we fall back to regular
downloads or VCS checkouts.  It is also still possible to choose where
substitutes are downloaded from, using ‘--substitute-urls’, or even to
pass an empty list of URLs.

Feedback welcome!

Ludo’.

Attachment: 0001-substitute-Always-allow-substitutes-for-fixed-output.patch
Description: Text Data

Attachment: 0002-Revert-download-Download-a-nar-when-a-VCS-checkout-f.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]