From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ALHMIqIu6GOd8gAAbAwnHQ (envelope-from ) for ; Sun, 12 Feb 2023 01:11:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ECXVIqIu6GOiuAAA9RJhRA (envelope-from ) for ; Sun, 12 Feb 2023 01:11:14 +0100 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 509B939E13 for ; Sun, 12 Feb 2023 01:11:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQzxB-0002D1-7x; Sat, 11 Feb 2023 19:10:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQzx9-0002Cm-3s for guix-devel@gnu.org; Sat, 11 Feb 2023 19:10:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQzx7-0001fo-Gv; Sat, 11 Feb 2023 19:10:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=EfX9r1O7LORIfdt25yPQuxHSHM65T1spfhxYlPrdp7M=; b=OFBWXVojdowCcuNw62Lv E2qK44+Llkl/GunNosJSaTWXG910hVXA7jIm3zGBZ82IVfyDGznWKfM1BYdFuv6OK0iDddmncXe57 Oz728pDvIuiUJck6ZsQyrx/CVHyMw9MOTTdaT3q9Bew2PBKiRlR2bqKCFmdpLmYEYckmf7spGg55s JZh/atFQOCksMlPPBEBckNtzrcvT0bJeO5MSibrUlFgO0UdFwwWhheMN2Xi+lHFIPLa6si2As10o/ MLpoVFCMdYkwlcrhmImxgkWoX5SbSmzP5pfjpC75q8kTpEWvYOBYHzX2jp+yFwkTifODoz7GuGt2w BL+rTmoNcazVNg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQzx7-0001Xy-4W; Sat, 11 Feb 2023 19:10:45 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Nicolas Graves via "Development of GNU Guix and the GNU System distribution." Cc: Nicolas Graves Subject: Re: avoid Computing Guix derivation when not necessary References: <87v8k9bqk4.fsf@ngraves.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 24 =?utf-8?Q?Pluvi=C3=B4se?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la =?utf-8?Q?Tra=C3=AEnasse?= 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, 12 Feb 2023 01:10:42 +0100 In-Reply-To: <87v8k9bqk4.fsf@ngraves.fr> (Nicolas Graves via's message of "Fri, 10 Feb 2023 14:25:31 +0100") Message-ID: <87ilg7n3p9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676160674; a=rsa-sha256; cv=none; b=oImbti5lNbxZQqGDebwVkEvbLFktLYwxtyWWy7XaSa3m74/U8u6+BCZpj7GGh73UT2dztx 8ZLgMwOrCskxd6ouUnX4ADkCdnR3VXfKWRY+r6hEZNoSpKwy51YSQ+Wro9thxmWyMRmbUr 09z8hbHyCf4SA/aqslsxLub/rhloGqX6twJo0+ViZYu/W6KYq2/unFlAjvxF15aazC/H6c Y2ixOkYT3/nZhGyEELdo5T5+3+PoJEhEK5KDa+341Q3y/HLJJ+uWy7Z0iw+0+FfUHjK1b4 GA8E9HaM/HVGZKp/flKsaLrXYKtw4xzOB7TpcGekNDuN6LCu9GCL6UDTQzdjZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=OFBWXVoj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676160674; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=EfX9r1O7LORIfdt25yPQuxHSHM65T1spfhxYlPrdp7M=; b=Zc3Aei5syXbE1iGmbOpbT6hRPKERhgMyX1gvhTmIwpsFl2B8ZeEgyxMwJsCzJVf0l/KXZn wkqbYAgekH1Zk5BmszAyu3prM9mkhoNvac3L2LeKT1CPGr2fnOZaNaQK5TwKnhVico7Kt9 RwaPIvOfjV6mR7wbLfYiIzgnrad3f1RWsKT+7CCXu+ne7OJQfZhkN+ravedsXRVvZZe0Sp x9JmCnVxdwhQDpuIp2fJQ1fAj5iwZoDVTafVRHjbZGE/YTgmfaVrPuBLaPZzPuN/423zNw KpRpbzN0hveUubWssUMjk58IKnR3m4zakwwRZwvKvSAkBVe9+ZIaE2KtEvi04Q== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -7.61 X-Spam-Score: -7.61 X-Migadu-Queue-Id: 509B939E13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=OFBWXVoj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-TUID: m3Pu6dholVqG Hi Nicolas! Nicolas Graves via "Development of GNU Guix and the GNU System distribution." skribis: > I found an working solution to avoid waiting for the `Computing Guix > derivation' part when pulling or else. > > Here's my snippet: > > ``` > (use-modules > (git) > (guix profiles) > (srfi srfi-1)) > > (reduce (lambda (x y) (and x y)) #f > (map > (lambda (x) > (let* ((elts (cdadar (manifest-entry-properties x))) > (repository (repository-open (car (assoc-ref elts 'url)= ))) > (commit (oid->string > (object-id > (revparse-single repository > (car (assoc-ref elts 'branch= ))))))) > (string=3D commit (car (assoc-ref elts 'commit))))) > (manifest-entries (profile-manifest "./.guix-profile/guix")))) > ``` > > For the moment, I'm using a profile and local development directories to > avoid this recomputation when I need to run guix system and guix home, > but I think this could be included to speed up guix pull when no new > commits are found. Wait, =E2=80=98guix system=E2=80=99 and =E2=80=98guix home=E2=80=99 do not = do the infamous =E2=80=9CComputing Guix derivation=E2=80=9D step; that=E2=80=99s only for =E2=80=98guix pull= =E2=80=99, =E2=80=98guix time-machine=E2=80=99, and inferiors. What are you doing exactly? :-) > The principle is simple: get commit and directory info from the profile > manifest, compare commits, if commits for all channels are the same, do > not try to update the profile. > > It may not be as interessing for guix pull (need to pull anyway to get > the last commit...). If you think this can have some use, I can rework > on it for guix ;) I don=E2=80=99t fully understand the use case yet, but who knows! One marginal improvement would be sharing the cache that =E2=80=98time-mach= ine=E2=80=99 uses with =E2=80=98guix pull=E2=80=99. Last I looked it wasn=E2=80=99t as = easy as one might hope, but I forgot the details. Thanks, Ludo=E2=80=99.