From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qCknAjRiWGEQ/wAAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 15:44:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sJJlOTNiWGGdMAAAB5/wlQ (envelope-from ) for ; Sat, 02 Oct 2021 13:44:19 +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 C002830619 for ; Sat, 2 Oct 2021 15:44:19 +0200 (CEST) Received: from localhost ([::1]:49170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWfJK-0005eR-S3 for larch@yhetil.org; Sat, 02 Oct 2021 09:44:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWfJ4-0005Ye-Lc for guix-patches@gnu.org; Sat, 02 Oct 2021 09:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWfJ4-00006W-Ep for guix-patches@gnu.org; Sat, 02 Oct 2021 09:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWfJ4-0002jL-CS for guix-patches@gnu.org; Sat, 02 Oct 2021 09:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH 10/10] shell: Maintain a profile cache. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 02 Oct 2021 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50960 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163318221710449 (code B ref 50960); Sat, 02 Oct 2021 13:44:02 +0000 Received: (at 50960) by debbugs.gnu.org; 2 Oct 2021 13:43:37 +0000 Received: from localhost ([127.0.0.1]:58315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWfIe-0002iT-Ob for submit@debbugs.gnu.org; Sat, 02 Oct 2021 09:43:36 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:59552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWfIc-0002iK-Uz for 50960@debbugs.gnu.org; Sat, 02 Oct 2021 09:43:36 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by laurent.telenet-ops.be with bizsmtp id 11jY260080mfAB4011jYWg; Sat, 02 Oct 2021 15:43:33 +0200 Message-ID: <91012c32e4f8b04beae71378d44787a81055391a.camel@telenet.be> From: Maxime Devos Date: Sat, 02 Oct 2021 15:43:27 +0200 In-Reply-To: <20211002102240.27815-10-ludo@gnu.org> References: <20211002102240.27815-1-ludo@gnu.org> <20211002102240.27815-10-ludo@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-7niR6W+BhW4SS3n3wP77" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1633182213; bh=gk2qrfUolCvdz/3dj1TMCB3r/ZEAhO5ZiVQ4oKV3B4Q=; h=Subject:From:To:Date:In-Reply-To:References; b=FVtJLDzpeTOvy6FQgkx3KWGBHivNh5rPNBi7Q/FXd7vOwH7cqvHNE2JYcbGMh+jaW i7zrQa4mN/IvO1KB7gq+DkXSo7jL4RgrDMxWKOwCqAvqAUi0Al4TI9EplXZ/BgCgJ9 Sk/vb6t+uhyXm/YYzVacb+auJ49xvc1DiIyqL4+cD/rEUgPVrdXRFB82nCHv9G9BAx wOch7SwS5FHGrINTb+pemUDVJRRjvHcx3NaE1pCLJJCERVYbj0jfs6jlspZ6wBOTlC SOP5P8AkFNYj1meKbnyxxzsmRsM//SYYhvmNEcn6GcY8zZZ7JQfpeUIkLonHrEVlrr mbfdFsAtvsURQ== 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633182259; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=gk2qrfUolCvdz/3dj1TMCB3r/ZEAhO5ZiVQ4oKV3B4Q=; b=G30ahKxnb6CDMi6O0SlsxfYo1XlnO0Zd5YUAdl+v3/LhO/J4IxTbwt2wAWs0XCeD61Ydua mLPfwHWRW116ZocS4ZkPN3RbY7bbvB6USVwVTSzrkRI5MCKQIOjwIMxqUsqVws0775OYHh MRB8Ti0crV54KF6IJyQ9xPLL3gPIr7+ahIL6pSOrs5OLC4NSYYsClEHOMO6KpSn/I0Y8+J e3/0brgz9oRLguXjvFEN94L7a13mY+HFy3R/FGKsugYMcunJygGqrpTUXrZWvAurwYXvCX W3xnI2IPs4hVz2TmM7rtfijMpmDhWObo+Rjv+QsaKYw5DlrhvM0if05i4UNwbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633182259; a=rsa-sha256; cv=none; b=twnRGxH97gkTJn5TzMZ6o8anAM5V+mGHZ0i8p9H/PyC+kcZwPu5pZC0L39pivMaGG3w63+ EG1psug5Hx+KUQuAnoTPg1hv4XUwEmF4UW7F8/rzGASVFiyHCHSO5juzuwqROugCsXimey wsUNqfsMvCu2Sku+vXZJ0fyympo/ZZsyA6C4FEhnMTfhKkfy0Ek7FS7JP9mA+7HHV9yCrH VpcjUg8IH3QZCB6K/9QAId2l0P3XFdT7IVQlmZjJGqG9VTTgUmdn4kjK8b4xvLG3AVd+o/ s6L7FkwES3hkxrEnlJug4InhQwH2QoCPkSFK5xWRs4rSQ/yEeG0buEVzcH1ykg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=FVtJLDzp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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-Spam-Score: -3.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=FVtJLDzp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: C002830619 X-Spam-Score: -3.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: WxM+zhQdEaPM --=-7niR6W+BhW4SS3n3wP77 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op za 02-10-2021 om 12:22 [+0200]: > With this change, running "guix shell" (no arguments) is equivalent to: >=20 > guix environment -r ~/.cache/guix/profiles/some-root -l guix.scm >=20 > This is the cache miss. On cache hit, it's equivalent to: >=20 > guix environment -p ~/.cache/guix/profiles/some-root >=20 What if guix.scm is something like ;; Load custom package definitions (include "a-package.scm") (include "b-package.scm") (include "c-package.scm") (list a-package b-package c-package bash ...) and a-package.scm, b-package.scm or c-package.scm is modified? Then the cached profile should be rebuild, no? I use something like that for my operating system definition (though with -L and use-modules). It would be nice if this worked for "guix shell" as well. So I think the cache should also check if these dependencies have been modi= fied. To keep track of the dependencies, something like the =E2=80=98compile-all,= compile: Keep track of dependencies of compiled modules.=E2=80=99 patch from could be used, though the 'include', 'l= oad', 'include-from-path' and maybe 'use-modules' (if something like "guix shell = -Lextra-modules-directory ..." is done) macros would need to be replaced. Greetings, Maxime. --=-7niR6W+BhW4SS3n3wP77 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYVhh/xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iVYAQCEq4K0E44VpESXGHkGswfRcBbG Mxm6kspIO3UOyPqV+wEAp26SJiJ651QxY4UGqeGQRXf0hS95YF8Bn4Dk25SZbgk= =5gE1 -----END PGP SIGNATURE----- --=-7niR6W+BhW4SS3n3wP77--