unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "jgart" <jgart@dismail.de>
To: guix-devel@gnu.org
Subject: WDYT of guix remove flag that is like sed -i?
Date: Sun, 23 Apr 2023 15:06:41 +0000	[thread overview]
Message-ID: <75cc068a0582c388937c166feb68bfab@dismail.de> (raw)

hi,

WDYT of a `guix remove` flag that is like sed -i that removes the package from the module it is in?

It is like `sed -i` but works on guix packages/sexps themselves.

For example, I as the user would be able to do the following

`guix remove -i chezmoi` and it would remove the chezmoi package cleanly from gnu/packages/configuration-management.scm:31:2

If I also pass in the -r flag then it will also remove all the direct dependencies of chezmoi.

Might be cool and powerful to be able to have a flag to remove dependents as well.

I realize that this better serves the particular use cases of a channel like Guix 'R Us that is constantly needing to remove packages that it has upstreamed in an efficient manner. Still, this would be cool functionality to have.


                 reply	other threads:[~2023-04-23 15:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75cc068a0582c388937c166feb68bfab@dismail.de \
    --to=jgart@dismail.de \
    --cc=guix-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).