Received: (at 52805) by debbugs.gnu.org; 5 Jan 2022 20:59:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 15:59:54 2022 Received: from localhost ([127.0.0.1]:39002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1n5DNx-00055P-WF for submit <at> debbugs.gnu.org; Wed, 05 Jan 2022 15:59:54 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:44218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1n5DNw-000559-5b for 52805 <at> debbugs.gnu.org; Wed, 05 Jan 2022 15:59:52 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1188013C; Wed, 5 Jan 2022 21:59:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GXoJeGDv3dLT; Wed, 5 Jan 2022 21:59:45 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0CE36112; Wed, 5 Jan 2022 21:59:44 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> To: Tobias Geerinckx-Rice <me@HIDDEN> Subject: Re: bug#52805: [PATCH] substitute: Add a =?utf-8?Q?=E2=80=98--cle?= =?utf-8?Q?ar-cache=E2=80=99?= option. References: <20211226162126.23749-1-me@HIDDEN> <87ee5x7nwj.fsf@HIDDEN> <87pmphhg8q.fsf@nckx> Date: Wed, 05 Jan 2022 21:59:44 +0100 In-Reply-To: <87pmphhg8q.fsf@nckx> (Tobias Geerinckx-Rice's message of "Mon, 27 Dec 2021 22:20:16 +0100") Message-ID: <87czl5kif3.fsf_-_@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 1188013C X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 52805 Cc: Mathieu Othacehe <othacehe@HIDDEN>, 52805 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Hello, Tobias Geerinckx-Rice <me@HIDDEN> skribis: > Mathieu Othacehe =E5=86=99=E9=81=93=EF=BC=9A [...] >> Moreover this script is an internal undocumented tool, >> so I'm not in favor of adding user commands to it. +1 > The point was to have a little command I could ask other users to run, > that's guaranteed to clear the correct directory, and doesn't involve > a spooky rm (which saves some back-and-forth :-). In which case do users have to =E2=80=98rm -rf ~/.cache/guix/substitute=E2= =80=99? That directory is only used by =E2=80=98guix weather=E2=80=99. In that cas= e, =E2=80=98--clear-cache=E2=80=99 could be added to =E2=80=98guix weather=E2= =80=99 maybe? Now, ideally there would not be any cache-related option because the cache would always be valid. If it=E2=80=99s not, it would be nice to see = how that can be improved or mitigated. Thoughts? Ludo=E2=80=99.
guix-patches@HIDDEN
:bug#52805
; Package guix-patches
.
Full text available.Received: (at 52805) by debbugs.gnu.org; 29 Dec 2021 16:58:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 29 11:58:42 2021 Received: from localhost ([127.0.0.1]:50163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1n2cHi-0005Qm-7d for submit <at> debbugs.gnu.org; Wed, 29 Dec 2021 11:58:42 -0500 Received: from mail-wm1-f48.google.com ([209.85.128.48]:35804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zimon.toutoune@HIDDEN>) id 1n2cHg-0005QU-PJ for 52805 <at> debbugs.gnu.org; Wed, 29 Dec 2021 11:58:41 -0500 Received: by mail-wm1-f48.google.com with SMTP id v10-20020a05600c214a00b00345e59928eeso8215502wml.0 for <52805 <at> debbugs.gnu.org>; Wed, 29 Dec 2021 08:58:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=jeiyTgboR4u2+lQNSnmchbQOU166sOcizBOho5weyAw=; b=dlj/Kv8eVlOi0q8cdA/FJ4Unu/qt876CWaCsfS5/rw+HVkPV1z+OLwNjr8sfDJS/r4 8Tdejutr9ifT76RgvlJPk995SrTd5rxfSNHdMANiR3pDjc5SRy+omDsPW/uBs7as5B1R j/aac+fTAomtFPXLX6fRcvHYjMWNHwzP5y1qac1NaPBsDJTvOddcZGBx2U0ApYO3IqrC nkCAY5HJZnfXJFnssWjnVHvRXeJ2ptTp60QoixFVDV/0np+RfAmt5wFio3VsqILiJF50 QSar4vKtjCXmqjXjWNxUBgVYib+itV5uYa66j4jdK3X2zlYm3zSLBaHhVV1+gn8iCa3S F6Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=jeiyTgboR4u2+lQNSnmchbQOU166sOcizBOho5weyAw=; b=j73e0yZBzEH22HmSPDlQ8uJPDGuS8hzQqTa/xFR6qNUfkvrnD9cji3Y042EnPxB88F Lib3OFF4vBl8smgjxA4NhPWaFRezbJPkVhotea5Pbg+eo7GS9MOh+OdSHrKw3M8dXTaw gSttK8uyrrRyFNTgNx1AjOPFq7CDHqhtGWbMm1xBz7dDZ6p7aKZImz1QIUVvGzkF7GXI RJhBZapqjKCZeYAbOLRPXJn9L+p8c0gy6nIDPZbUIm7TRrFIApMYLHQ5J2Sz/PU0s8PK Gplgj/fCNvH1ZpHVsdJNx9dpbhDCuGNIwL1BJik2y/4KiTDWiz3XdHfn/VKFrjm/fyBO qtHg== X-Gm-Message-State: AOAM530WYIvfIaJw548iSbzBs85EjMowsownw5EzKQuYUTXQztPGIGY5 4kgGj2THNvd+aXe4uv7x/kj7nQBV7qU= X-Google-Smtp-Source: ABdhPJxdpGQQkar8gWhz6xdQt2W3jw3HPor+ADdQECpEfF6bSE5wYPxAMJjOZn3f8F8YJb3IZUrSBw== X-Received: by 2002:a7b:c101:: with SMTP id w1mr21839498wmi.149.1640797114840; Wed, 29 Dec 2021 08:58:34 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id p13sm12767893wrs.54.2021.12.29.08.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 08:58:34 -0800 (PST) From: zimoun <zimon.toutoune@HIDDEN> To: Tobias Geerinckx-Rice <me@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN> Subject: Re: [bug#52805] [PATCH] substitute: Add a =?utf-8?Q?=E2=80=98--cl?= =?utf-8?Q?ear-cache=E2=80=99?= option. In-Reply-To: <87pmphhg8q.fsf@nckx> References: <20211226162126.23749-1-me@HIDDEN> <87ee5x7nwj.fsf@HIDDEN> <87pmphhg8q.fsf@nckx> Date: Wed, 29 Dec 2021 17:49:28 +0100 Message-ID: <864k6rjqzr.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52805 Cc: 52805 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Tobias, On Mon, 27 Dec 2021 at 22:20, Tobias Geerinckx-Rice via Guix-patches via <g= uix-patches@HIDDEN> wrote: >> Maybe "guix gc" would be a better place? > > No, I'd rather not add yet another option to =E2=80=98guix gc=E2=80=99 th= at has > nothing to do with GC. Why? Well, garbage collection is about automatic memory management and cache is about efficiency of memory usage. Therefore, it is appears to me relevant to have an option =E2=80=9Cguix gc --clear-cache=E2=80=9D to fo= rce the clean of various caches. Cheers, simon
guix-patches@HIDDEN
:bug#52805
; Package guix-patches
.
Full text available.Received: (at 52805) by debbugs.gnu.org; 27 Dec 2021 21:46:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 27 16:46:52 2021 Received: from localhost ([127.0.0.1]:44474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1n1xpU-0006Dv-9s for submit <at> debbugs.gnu.org; Mon, 27 Dec 2021 16:46:52 -0500 Received: from tobias.gr ([80.241.217.52]:58716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <me@HIDDEN>) id 1n1xpR-0006Di-PK for 52805 <at> debbugs.gnu.org; Mon, 27 Dec 2021 16:46:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=8d0Ig9TgmPEcL lD0z4HsqwMtUQq3FlXlRPfiEHMHpzI=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=UNgMS20RLGLqgthK5zzLYvQcEDLnbU+3Fst5Hi PEH2EQxyd6wKWUuxXZVel0X5+2MPLp+yyQeoD9KgkKm8fo72arjRW3GVvVjFD5jO3umQuh URMfEmdMu5Rdp3wCDJi8gOLRZRKGoc7evwhU3P7/O98CAvww3dLf4+9fyWDLpfv8hZFzWd /ShUuAKsnoQCT66wVMt4XhPvC28Z7oSMhZfGQycU42x7tKl4whEuE2/DubE59KnDvw96NL 1NYsAcGWNBHD//MXEhnToBkZw+55WQtsCMKf3GDpRjiaZo4S+RFzb6MH6FXRN/ptGHCvtY y93XtZT6EgGFKMRskF/dwVlw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 05c8f466 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 27 Dec 2021 21:46:46 +0000 (UTC) References: <20211226162126.23749-1-me@HIDDEN> <87ee5x7nwj.fsf@HIDDEN> From: Tobias Geerinckx-Rice <me@HIDDEN> To: Mathieu Othacehe <othacehe@HIDDEN> Subject: Re: bug#52805: [PATCH] substitute: Add a =?utf-8?Q?=E2=80=98--cle?= =?utf-8?Q?ar-cache=E2=80=99?= option. Date: Mon, 27 Dec 2021 22:20:16 +0100 In-reply-to: <87ee5x7nwj.fsf@HIDDEN> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87pmphhg8q.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52805 Cc: 52805 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Mathieu, Thanks for the review! Mathieu Othacehe =E5=86=99=E9=81=93=EF=BC=9A > This script is invoked by the daemon as root. In that context, > %narinfo-cache-directory is "/var/guix/substitute/cache",=20 > whereas when > run as an user it is likely: "~/.cache/guix/substitute". Correct. > That would mean that users need to run "sudo guix substitute > --clear-cache". If they want to clear /var instead of ~/.cache, sure. That sounds like a sane interface, if clearing =E2=80=98root=E2=80=99's cac= he were=20 the intention? How would you even do that without sudo,=20 privilege-wise? > Moreover this script is an internal undocumented tool, > so I'm not in favor of adding user commands to it. OK. The point was to have a little command I could ask other users to=20 run, that's guaranteed to clear the correct directory, and doesn't=20 involve a spooky rm (which saves some back-and-forth :-). > Maybe "guix gc" would be a better place? No, I'd rather not add yet another option to =E2=80=98guix gc=E2=80=99 that= has=20 nothing to do with GC. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYco0hQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15d+4BAPkuQWWC+qZ1C/dkdaYx/U1PC85Yn8QdGWLVDgED STCNAQClkSgUbCbBmujSQMiP17E0ovE+2PBVu7VDCLaNfj0DAQ== =rAZY -----END PGP SIGNATURE----- --=-=-=--
guix-patches@HIDDEN
:bug#52805
; Package guix-patches
.
Full text available.Received: (at 52805) by debbugs.gnu.org; 27 Dec 2021 21:12:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 27 16:12:40 2021 Received: from localhost ([127.0.0.1]:44433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1n1xIN-0005Gf-Vp for submit <at> debbugs.gnu.org; Mon, 27 Dec 2021 16:12:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <othacehe@HIDDEN>) id 1n1xIL-0005GP-1D for 52805 <at> debbugs.gnu.org; Mon, 27 Dec 2021 16:12:38 -0500 Received: from [2001:470:142:3::e] (port=42250 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <othacehe@HIDDEN>) id 1n1xIF-0001EB-Du; Mon, 27 Dec 2021 16:12:31 -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=HTai3Oe2Ev1Cl9OVDyWFghZrT8QTZW+DPRos/K8f90M=; b=GF2EV6LSzcQp6bLzLE4x qBWz2ZheVnYYZPOGAakotOwUbqZ3yRiTX70+iLtZDRlvn4urHEPJcoyPPIlve7rgfwFnd+1LU6poT 5cWO+ufHkpyvmEQMqJGT+RMaJT6kROhj4MteDUXfKJmhfMqFWZpR++TWNRItp4AKyS2afwk24kTKp THSyjBWiaEtbk9RdGdqenVMVN6f6bSEiG0+ZOPpUnswhF2dIZXzoogOBcWOrOAO/dCR5Mq9kbyOek IAtvV3boRVGAZpZiP9EQu3fdnCbkxksEXbbVPJFiq14S6gXKPlE16z1PC+WCPl44Ok5Bx1f5wiM1H Qd1xSmqqmYpkKw==; Received: from [2a01:cb18:832e:5f00:3563:417e:2a38:86d8] (port=59788 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <othacehe@HIDDEN>) id 1n1xIF-00030u-G6; Mon, 27 Dec 2021 16:12:31 -0500 From: Mathieu Othacehe <othacehe@HIDDEN> To: Tobias Geerinckx-Rice <me@HIDDEN> Subject: Re: bug#52805: [PATCH] substitute: Add a =?utf-8?Q?=E2=80=98--cle?= =?utf-8?Q?ar-cache=E2=80=99?= option. References: <20211226162126.23749-1-me@HIDDEN> Date: Mon, 27 Dec 2021 22:12:28 +0100 In-Reply-To: <20211226162126.23749-1-me@HIDDEN> (Tobias Geerinckx-Rice's message of "Sun, 26 Dec 2021 17:21:26 +0100") Message-ID: <87ee5x7nwj.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52805 Cc: 52805 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Hello Tobias, > Unlike =E2=80=98rm -rf ~/.cache/guix/substitute=E2=80=99 this respects XD= G_CACHE_HOME. This script is invoked by the daemon as root. In that context, %narinfo-cache-directory is "/var/guix/substitute/cache", whereas when run as an user it is likely: "~/.cache/guix/substitute". That would mean that users need to run "sudo guix substitute --clear-cache". Moreover this script is an internal undocumented tool, so I'm not in favor of adding user commands to it. Maybe "guix gc" would be a better place? Thanks, Mathieu
guix-patches@HIDDEN
:bug#52805
; Package guix-patches
.
Full text available.Received: (at submit) by debbugs.gnu.org; 26 Dec 2021 16:20:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 26 11:20:52 2021 Received: from localhost ([127.0.0.1]:41363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1n1WGS-0002DU-CM for submit <at> debbugs.gnu.org; Sun, 26 Dec 2021 11:20:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:60172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <me@HIDDEN>) id 1n1WGM-0002DG-WA for submit <at> debbugs.gnu.org; Sun, 26 Dec 2021 11:20:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1n1WGL-00020S-JU for guix-patches@HIDDEN; Sun, 26 Dec 2021 11:20:46 -0500 Received: from [2a02:c205:2020:6054::1] (port=36664 helo=tobias.gr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1n1WGH-00054C-LZ for guix-patches@HIDDEN; Sun, 26 Dec 2021 11:20:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=8WG/O4L+dTNPM /4t/FpzzwPK3Bm/RxTqdzz1oU89it8=; h=date:subject:to:from; d=tobias.gr; b=Dp0QOuwMc11gC5sYIB7igkjra8O+Zhd8ecGsr82RyvGiZ5NWFRckX0XVR/lpA0kM7mgV Wfp2MZyLKgLnzjPb/hykwcxUGZM63CALQX+D9K27MpsHf1WzanN9RYhNLDajNURBagjpJA izVPTFHVxVGRD86EZ2UlCwcHeqYIeZ7IwYNCI4pcvwN+18v/I7pffuLa5coH5iwR5OG84+ w202tAP9kRLsbjdVYswGmX4sWLWup55lQuQfnKlkArmZBL8fgXigVOZ68X8kSkJjLUGLCp Sj33FmTfosJwjyGUt1PYFBhhKFwSufoyCUy3oHSwhUFddKgNU/MY9YtmTCJ67MgA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 01804ee8 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <guix-patches@HIDDEN>; Sun, 26 Dec 2021 16:20:35 +0000 (UTC) From: Tobias Geerinckx-Rice <me@HIDDEN> To: guix-patches@HIDDEN Subject: [PATCH] =?UTF-8?q?substitute:=20Add=20a=20=E2=80=98--clear-cache?= =?UTF-8?q?=E2=80=99=20option.?= Date: Sun, 26 Dec 2021 17:21:26 +0100 Message-Id: <20211226162126.23749-1-me@HIDDEN> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:c205:2020:6054::1 (failed) Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@HIDDEN; helo=tobias.gr X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.7 (--) Unlike ‘rm -rf ~/.cache/guix/substitute’ this respects XDG_CACHE_HOME. Use the --OPTION form for consistency with the existing ‘guix substitute’ interface, where other guix subcommands would prefer an ACTION. This subcommand really supports only one OPTION at a time, anyway. * guix/scripts/substitute.scm (guix-substitute): Add a new ‘--clear-cache’ option argument. (show-help): Document it. --- guix/scripts/substitute.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm index c044e1d47a..1e71b4848b 100755 --- a/guix/scripts/substitute.scm +++ b/guix/scripts/substitute.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2014 Nikita Karetnikov <nikita@HIDDEN> ;;; Copyright © 2018 Kyle Meyer <kyle@HIDDEN> ;;; Copyright © 2020 Christopher Baines <mail@HIDDEN> +;;; Copyright © 2021 Tobias Geerinckx-Rice <me@HIDDEN> ;;; ;;; This file is part of GNU Guix. ;;; @@ -40,7 +41,7 @@ (define-module (guix scripts substitute) #:use-module (guix cache) #:use-module (gcrypt pk-crypto) #:use-module (guix pki) - #:use-module ((guix build utils) #:select (mkdir-p)) + #:use-module ((guix build utils) #:select (delete-file-recursively mkdir-p)) #:use-module ((guix build download) #:select (uri-abbreviation nar-uri-abbreviation (open-connection-for-uri @@ -239,6 +240,8 @@ (define-syntax with-networking (define (show-help) (display (G_ "Usage: guix substitute [OPTION]... Internal tool to substitute a pre-built binary to a local build.\n")) + (display (G_ " + --clear-cache forget previously cached availability information")) (display (G_ " --query report on the availability of substitutes for the store file names passed on the standard input")) @@ -749,6 +752,10 @@ (define reply-port (with-networking (with-error-handling ; for signature errors (match args + (("--clear-cache") + ;; This is meant to be a big hammer, so don't pussyfoot around with + ;; maybe-remove-expired-cache-entries. + (delete-file-recursively %narinfo-cache-directory)) (("--query") (let ((acl (current-acl))) (let loop ((command (read-line))) -- 2.34.0
Tobias Geerinckx-Rice <me@HIDDEN>
:guix-patches@HIDDEN
.
Full text available.guix-patches@HIDDEN
:bug#52805
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.