From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SCcEGLrYFmAuTAAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 16:20:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mGVsE7rYFmD9PQAAB5/wlQ (envelope-from ) for ; Sun, 31 Jan 2021 16:20:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 20D1D94051B for ; Sun, 31 Jan 2021 16:20:10 +0000 (UTC) Received: from localhost ([::1]:36764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6FSL-00016O-3P for larch@yhetil.org; Sun, 31 Jan 2021 11:20:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6FSE-00016E-Ov for guix-patches@gnu.org; Sun, 31 Jan 2021 11:20:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6FSE-0001WA-Hh for guix-patches@gnu.org; Sun, 31 Jan 2021 11:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6FSE-0007iJ-DO for guix-patches@gnu.org; Sun, 31 Jan 2021 11:20:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45104] pull: Add a "with-substitutes" option. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 31 Jan 2021 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Mathieu Othacehe Received: via spool by 45104-submit@debbugs.gnu.org id=B45104.161210994829580 (code B ref 45104); Sun, 31 Jan 2021 16:20:02 +0000 Received: (at 45104) by debbugs.gnu.org; 31 Jan 2021 16:19:08 +0000 Received: from localhost ([127.0.0.1]:57802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6FRK-0007h0-Mt for submit@debbugs.gnu.org; Sun, 31 Jan 2021 11:19:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6FRH-0007gK-P8 for 45104@debbugs.gnu.org; Sun, 31 Jan 2021 11:19:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35054) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6FRC-0001Ia-BI; Sun, 31 Jan 2021 11:18:58 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50406 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6FRA-0004N0-T8; Sun, 31 Jan 2021 11:18:57 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87eek1vd4g.fsf@gnu.org> <87a6uohztw.fsf@cbaines.net> <877dpktzot.fsf@gnu.org> <878s9zfjt4.fsf@gnu.org> <875z52loam.fsf@gnu.org> <871re3khbt.fsf@gnu.org> <87y2gbj25d.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?UTF-8?Q?Pluvi=C3=B4se?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 31 Jan 2021 17:18:55 +0100 In-Reply-To: <87y2gbj25d.fsf@gnu.org> (Mathieu Othacehe's message of "Fri, 29 Jan 2021 14:36:30 +0100") Message-ID: <87eei1nkpc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45104@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 20D1D94051B X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: T2TStjvOjk8a Hi! Mathieu Othacehe skribis: > From 31dad6456825a329ba0f07c95e3e99258d186a8f Mon Sep 17 00:00:00 2001 > From: Mathieu Othacehe > Date: Fri, 29 Jan 2021 13:48:44 +0100 > Subject: [PATCH v2] guix: channels: Introduce > "channel-with-substitutes-available". > > * guix/channels.scm (find-latest-commit-with-substitutes, > channel-with-substitutes-available): New procedures. > * guix/scripts/pull.scm (guix-pull): Move "channel-list" call inside the > %current-system parameter scope. > * doc/guix.texi (Channels with substitutes): New section. Yay! > +@node Channels with substitutes > +@section Channels with substitutes Should be =E2=80=9CChannels With Substitutes=E2=80=9D > +When running @command{guix pull}, Guix will first compile the > +definitions of every available package. This is an expensive operation > +for which substitutes (@pxref{Substitutes}) may be available. The > +following snippet in @file{channels.scm} will ensure that @command{guix > +pull} uses the latest commit with available substitutes for the package > +definitions. This is done by querying the continuous integration ^ I=E2=80=99d replace the period with a colon and insert the example right he= re. > +server at @url{https://ci.guix.gnu.org}. > + > +Be careful, this does not mean that all the packages that you will s/Be careful,/Note that/ > +install after running @command{guix pull} will have available > +substitutes. It only ensures that @command{guix pull} will not try to > +compile package definitions. This is particularly useful when using > +machines with limited resources. > + > +@lisp > +(list > + (channel-with-substitutes-available ^ Nipick: maybe move on the previous line. > (define-module (guix channels) > #:use-module (git) > + #:use-module (guix ci) Could we instead move these two procedures to (guix ci), with an #:autoload for (guix channels), so that (guix channels) remains focused on core functionality? It does mean that in the example above we need to add an explicit (use-modules (guix ci)). Otherwise LGTM, thanks! Ludo=E2=80=99.