From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mFo6LaNORWTqKAEASxT56A (envelope-from ) for ; Sun, 23 Apr 2023 17:28:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ePwSLaNORWRyrAAA9RJhRA (envelope-from ) for ; Sun, 23 Apr 2023 17:28:35 +0200 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 2F268183F2 for ; Sun, 23 Apr 2023 17:28:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqbIh-0000V2-HS; Sun, 23 Apr 2023 11:06:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqbIf-0000Tz-0j for guix-devel@gnu.org; Sun, 23 Apr 2023 11:06:49 -0400 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqbIc-0001RH-St for guix-devel@gnu.org; Sun, 23 Apr 2023 11:06:48 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id dca73999 for ; Sun, 23 Apr 2023 17:06:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h= mime-version:date:content-type:content-transfer-encoding:from :message-id:subject:to; s=20190914; bh=tZtaGcyN+/QMQebcb0kIaUhqC IzGtN8veub8PkEI/EA=; b=tjQ8VkRRQDetTwi4iJwnMW7aiLfS0rC5ro9nhuBib WFAieW7XXtGOqHZk6YUeNp4/jNgGKzWfp0Pu7PaYJ6+MvEk6+Jw/QtjRW96aVFAF k6e4KnMIcmdnH1b65maQAY2ocY+NGjPYTfNt2dQeo7HO7qAPj8iqB7bnZL3njakJ UGqcQyHwRwVpeRk6RUdDkylJsDjNAFRrKQZAKmxaPCFEh0GaSxc9W/akxmq/W7Yw ceYlt6wXLuNq3g8JFlFw58DK6/An3C+MQ8lbkGBnQwhVUmxEtezb7Xwz9I4qsG9J BoN5MJcne021w5Hv7Y7bArPKfMwSJaNTuwXUzaQDq4OGg== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id b2a650de for ; Sun, 23 Apr 2023 17:06:42 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 2dafd974 for ; Sun, 23 Apr 2023 17:06:42 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 04073d05 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 23 Apr 2023 17:06:41 +0200 (CEST) MIME-Version: 1.0 Date: Sun, 23 Apr 2023 15:06:41 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.17.0 From: "jgart" Message-ID: <75cc068a0582c388937c166feb68bfab@dismail.de> Subject: WDYT of guix remove flag that is like sed -i? To: guix-devel@gnu.org Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682263715; a=rsa-sha256; cv=none; b=ueaIhEJVBgypH3i11PxGRAiUBef2ZGEqTzYVBEpG0yIB4mELhS9DAAThvzrtje692IDE3t uCWfeo8DZEIwBptBemW0+2undMe4q1C8v/G77G7/mRjm0ovPLYsA+/fvI6IVR3aQItWfel NlUSMFuEo+ItBXoekyQQiKaoY2zSvSDezLIW7VoaPY/xqtb5iVBbt62L6WRJHe5TPi+nMk XEI1GBbLF2yy+UdJ7VDyj5EyrFyHUMDqj2PQabuA3GDm3PgPq79nLVdXcWsA3z5MTpHFo3 2y6sMjcWfea2jlFqTVQJ6GSfe6EGzzCfJzjYK0vboCsajvqXAmHB92G29l3kGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=tjQ8VkRR; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682263715; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tZtaGcyN+/QMQebcb0kIaUhqCIzGtN8veub8PkEI/EA=; b=MDC5u5/DNHujz3898kY8qfP40gpJHrS02510tPWA+H3HIKaIFKh3p7t4Du/rU2LOEmJ2Rg HQ+bvR3mR77bFX0G8myTajuMsu+xiLS2+ayXI2++5YlDGQZvsGXzTy4Hm0Bbt95HZzzGnu XdMXyCwSmZMKgWwFj13jX/a64yyTjlIwG7zGrVM0a0Ja3AzbYQCCL0PA4l0jiEXJQ7U+cf s48e6MZHAcDbHP21giKs1do/d/XnP56DTVkjW7VHP8LBgP7SnJ6LgLVw1sOFff7ooWoEwt fconrZuoeodA/GluIihJWtd5IvnATq8Lv32iX/7hTfaxrBSkmydC+mPZTBPr3g== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=tjQ8VkRR; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.65 X-Spam-Score: -6.65 X-Migadu-Queue-Id: 2F268183F2 X-TUID: 0P6h4EG4ocBy 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 dep= endencies 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 l= ike Guix 'R Us that is constantly needing to remove packages that it has = upstreamed in an efficient manner. Still, this would be cool functionalit= y to have.