From: Tobias Geerinckx-Rice via Guix-patches via <guix-patches@gnu.org>
To: Mathieu Othacehe <othacehe@gnu.org>
Cc: 52805@debbugs.gnu.org
Subject: [bug#52805] [PATCH] substitute: Add a ‘--clear-cache’ option.
Date: Mon, 27 Dec 2021 22:20:16 +0100 [thread overview]
Message-ID: <87pmphhg8q.fsf@nckx> (raw)
In-Reply-To: <87ee5x7nwj.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]
Hi Mathieu,
Thanks for the review!
Mathieu Othacehe 写道:
> 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".
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 ‘root’'s cache were
the intention? How would you even do that without sudo,
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
run, that's guaranteed to clear the correct directory, and doesn't
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 ‘guix gc’ that has
nothing to do with GC.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
next prev parent reply other threads:[~2021-12-27 21:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-26 16:21 [bug#52805] [PATCH] substitute: Add a ‘--clear-cache’ option Tobias Geerinckx-Rice via Guix-patches via
2021-12-27 21:12 ` Mathieu Othacehe
2021-12-27 21:20 ` Tobias Geerinckx-Rice via Guix-patches via [this message]
2021-12-29 16:49 ` zimoun
2022-01-05 20:59 ` Ludovic Courtès
2022-01-05 22:41 ` Tobias Geerinckx-Rice via Guix-patches via
2022-01-11 12:47 ` Ludovic Courtès
2022-01-11 18:00 ` Tobias Geerinckx-Rice via Guix-patches via
2022-01-12 21:04 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmphhg8q.fsf@nckx \
--to=guix-patches@gnu.org \
--cc=52805@debbugs.gnu.org \
--cc=me@tobias.gr \
--cc=othacehe@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.