From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0P5WEWwsymEHLwAAgWs5BA (envelope-from ) for ; Mon, 27 Dec 2021 22:13:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yN8hDmwsymEydgEAauVa8A (envelope-from ) for ; Mon, 27 Dec 2021 22:13:16 +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 87104DFFF for ; Mon, 27 Dec 2021 22:13:15 +0100 (CET) Received: from localhost ([::1]:40474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1xIw-0004rU-CW for larch@yhetil.org; Mon, 27 Dec 2021 16:13:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1xIk-0004rJ-B3 for guix-patches@gnu.org; Mon, 27 Dec 2021 16:13:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:32887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1xIj-0001Hb-W7 for guix-patches@gnu.org; Mon, 27 Dec 2021 16:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1xIj-0005HQ-Pf for guix-patches@gnu.org; Mon, 27 Dec 2021 16:13:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52805] [PATCH] substitute: Add a =?UTF-8?Q?=E2=80=98--clear-cache=E2=80=99?= option. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 21:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 52805@debbugs.gnu.org Received: via spool by 52805-submit@debbugs.gnu.org id=B52805.164063956020257 (code B ref 52805); Mon, 27 Dec 2021 21:13:01 +0000 Received: (at 52805) by debbugs.gnu.org; 27 Dec 2021 21:12:40 +0000 Received: from localhost ([127.0.0.1]:44433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1xIN-0005Gf-Vp for submit@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 ) id 1n1xIL-0005GP-1D for 52805@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 ) 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 ) id 1n1xIF-00030u-G6; Mon, 27 Dec 2021 16:12:31 -0500 From: Mathieu Othacehe References: <20211226162126.23749-1-me@tobias.gr> Date: Mon, 27 Dec 2021 22:12:28 +0100 In-Reply-To: <20211226162126.23749-1-me@tobias.gr> (Tobias Geerinckx-Rice's message of "Sun, 26 Dec 2021 17:21:26 +0100") Message-ID: <87ee5x7nwj.fsf@gnu.org> 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-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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640639596; 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: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=HTai3Oe2Ev1Cl9OVDyWFghZrT8QTZW+DPRos/K8f90M=; b=Ik+frn7IsXqvxXFyTSs0oLSARQRZTmolK712SaIykgJDtFne+5O3UnXPlCy1tVjDqf4HqN 2DMiyrGnwbu42PN1Ha9rHv2ecA6CNiZOB4wb8AKdO4hjgtFjapJM4ch/OU87Nym0J/RD66 qIfWTlzDlAjOg+wIAITbx8Td27ZGtHqtmEME0O6lVPjjutIAYAtUn1k/hI4Ssu/WCF0QCA bJANv8Tg5wJdcJihdGYod3140JdDJnU6In/xSN6BE98Jto3ZFdyq7wxeDBzXBKWEjETi3Z rbzOwlVxyFe2BR91TGZO3THkd3bLo5DUrH4NTp8cA7bjMygZamEYaE+YmnA8xQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640639596; a=rsa-sha256; cv=none; b=i3zuYbqn4m3CfqDgr/DxONUYhUFohFQqPuWsFl0PdAe7eBvGIGjeBLyDBCHQvXgZJmwsle HTyEAROMk4qHA1IzLKTQ702UEH/jWEHbGOjrbv+F0AQHXKw+h+25XwmAJwj2r3yo1/f9IE e12lhHLj6UH34YHVI6fT9Weorx4sdqJY+lNBfaTPpznSJuQQRCuWQad/gok3CrkCzjIqxG bDhUUCDZZO2YdGJ4pa4z2UYsIZGg8DDe/rFGpZE43KPgqs4Or78fzX2vMf1skNO7sOV3vh QPCcB35K4/ksvdWz3PlQJvL5ruPyOKuPs1R2C2CfH/NdRLs6va/za06Yvj2BRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GF2EV6LS; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.77 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GF2EV6LS; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 87104DFFF X-Spam-Score: -3.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: QBKGcxhmhtkJ 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