From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 01:28:59 2023 Received: (at submit) by debbugs.gnu.org; 28 Feb 2023 06:28:59 +0000 Received: from localhost ([127.0.0.1]:49521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWtTv-0001fV-IC for submit@debbugs.gnu.org; Tue, 28 Feb 2023 01:28:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:47854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWtTr-0001fK-Uw for submit@debbugs.gnu.org; Tue, 28 Feb 2023 01:28:58 -0500 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 1pWtTr-0000ce-Jd for guix-patches@gnu.org; Tue, 28 Feb 2023 01:28:55 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWtTp-0002M8-Rb for guix-patches@gnu.org; Tue, 28 Feb 2023 01:28:55 -0500 Received: by mail-pl1-x635.google.com with SMTP id z2so9310070plf.12 for ; Mon, 27 Feb 2023 22:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=DQTnJa9DJZXxCHiACc0VMAvfRMHXwzSjYc5hlZOQkDY=; b=eTAYN9+6pQkq0hV/9/eFky6Lu68No7epZp2qKkZRUa53tFQyMpi5T/2kfoxkwKX/oJ NRt9P5EZivEn5BT5d6ElEnxakEH46wgRZycrqPwHZaPjL7A5ySneTVZ6firoy2mFFJ0L hSyKaYFGHtPHo3FJ8lXUiMWpkC4JcMOmm3d5+4gdML2ugyN08QcfqbDhKmAOaV1WtX8X O7iRBmPgYPPrtmOebEDRAcNhS5LBwsUzhPMRq6pL0RjHEETw5u/Y3tpB30DoFKlc+x/X 8iWoxixg+AwzY/yQpCYwsZRxDoidt7I/Yq5yTvPVYJnj+gApscM96LihHw53CoHbqxLr XmgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DQTnJa9DJZXxCHiACc0VMAvfRMHXwzSjYc5hlZOQkDY=; b=DqtL2rncyGaddBOtmx52lqmfbeik0GhhqzGVDDRojSe2wpraEHiJSu9TXZyr7NYWNV 7M+A0udAvsa8eHxWvh5V1rc3YAq1oMSWFWvV9hdbPpa4aE2PqF+SgRhER1JDLl4WdXP+ P5/wg8zb3NWjv5pgupuszZJu/2soYafLMKuP2p4kpEz4VG4SFH0IJrv/dvaI2Iex+0EC H8iSmbsV/OckLhwP6mVdBXkSnS4nQkhur9tH/YKguhCGaUwE0YRFHFAbGh+DD1p9uOvM uRlM0CHTqkjMDpGL1aXNyxE9furUGaK6cyW8ceb+/JkjfxFfQoxgVDzUvfpMMG5wScmS GMDA== X-Gm-Message-State: AO0yUKW2zi/UhHpgxNmKSxZbElbd3nCOt4Q805mStDWuhgKvsobPNokB +D2W1iPznZOeHFT7kT0pJbm9R6GFs+w= X-Google-Smtp-Source: AK7set/PgRjkeJXWLgUNYRT6f4xnh1k5fE3dp0BiS/dXb5HgKLDMac4xDpocU1RogJRTb2QZoeaweA== X-Received: by 2002:a17:902:bf41:b0:19a:b033:2bb1 with SMTP id u1-20020a170902bf4100b0019ab0332bb1mr1450138pls.44.1677565731959; Mon, 27 Feb 2023 22:28:51 -0800 (PST) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id ju11-20020a170903428b00b0019b9a075f1fsm1911422plb.80.2023.02.27.22.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 22:28:50 -0800 (PST) From: Andy Tai To: guix-patches@gnu.org Subject: [PATCH] scripts: expose 'allow-collisions' for 'guix install' Date: Mon, 27 Feb 2023 22:28:46 -0800 Message-Id: <20230228062846.19516-1-atai@atai.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=lichengtai@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit Cc: Andy Tai X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) * guix/scripts/install.scm: 'allow-collisions' option of 'package' exposed for 'install' alias --- guix/scripts/install.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guix/scripts/install.scm b/guix/scripts/install.scm index 63e625f266..4ab64b5b54 100644 --- a/guix/scripts/install.scm +++ b/guix/scripts/install.scm @@ -34,6 +34,8 @@ (define (show-help) (display (G_ " -p, --profile=PROFILE use PROFILE instead of the user's default profile")) ;; '--bootstrap' not shown here. + (display (G_ " + --allow-collisions do not treat collisions in the profile as an error")) (display (G_ " -v, --verbosity=LEVEL use the given verbosity LEVEL")) (newline) @@ -61,7 +63,8 @@ (define %options ;; Preserve some of the 'guix package' options. (append (filter (lambda (option) (any (cut member <> (option-names option)) - '("profile" "dry-run" "verbosity" "bootstrap"))) + '("profile" "dry-run" "verbosity" "bootstrap" + "allow-collisions"))) %package-options) %transformation-options base-commit: cb0d8100b288b5b0d130820207db17764b7d2140 prerequisite-patch-id: 2ab0872d80951bb6f8df7bc8c4211f008a5cc6b8 prerequisite-patch-id: 1fa93a6e05a30a2a3a92d11ff1d7bdf7912e2724 prerequisite-patch-id: 8027f51c310a66f545421b43e1283ed516d41afc -- 2.39.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 15:03:07 2023 Received: (at 61864) by debbugs.gnu.org; 2 Mar 2023 20:03:07 +0000 Received: from localhost ([127.0.0.1]:58443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXp8t-0008Kc-0X for submit@debbugs.gnu.org; Thu, 02 Mar 2023 15:03:07 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:54093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXp8o-0008JZ-A4 for 61864@debbugs.gnu.org; Thu, 02 Mar 2023 15:03:06 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A946E3200344; Thu, 2 Mar 2023 15:02:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 02 Mar 2023 15:02:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=mesmtp; t=1677787376; x=1677873776; bh=xelEXF8WhiaMGGJ8GIWqX/+8ANnOT/ZW0bjCxw/C0Sc=; b= d7z2QtZHVgeklnR73fqncQj82+RX7a8rMXVcaPjRiMpH/SiZaUzBDrzty7zqLCr5 W071YPBiJ6on1xY0+HLL8gfyBz6V4ywhbsUdYgWZfImn1y2iI3SwanqMYSUpCrFr uyVSljhpQyFyVh4w72ATSoNp41hpcFDkmXLUubSuP6s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1677787376; x=1677873776; bh=xelEXF8WhiaMG GJ8GIWqX/+8ANnOT/ZW0bjCxw/C0Sc=; b=c2+yIl1NIXuRTfbLDiZuBIxSgceG+ ua9lj8e5YnHz2I1j1lSLKN9ly2AX/rO6m+J/HYNc3a5LQE5n1SlnAvF1/R7B1kk9 iep6pGU8ZerPiv7Qd2mt4fhXy6zx22ZmA7g5wuMAz0hG25AOpBpGSBuFph5Ope8u 7zYSBSf2K4oS8tiO32BTFnl6r6RbEkW5vxX8/TFVgf44RCsNt2OlihllxKR/x007 V558zv6hiyz/CAWobprQKuuxVUM7xXQJ2LaiqiCGhqd+mJXu+uBKHdvUREsVIKIH qoLY8flH2mfsEN+1bG/GMQVFM+PzGPKHLT9t1qbeqkFcnHciENOEOpDLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeljedgudeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefnvgho ucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrg htthgvrhhnpeeiteduheefkeeufeelgeduhfejgfelheefleeuhfeffffgueduleehvdej leeiteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Feedback-ID: i819c4023:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Mar 2023 15:02:55 -0500 (EST) Date: Thu, 2 Mar 2023 15:02:54 -0500 From: Leo Famulari To: Andy Tai Subject: Re: [bug#61864] [PATCH] scripts: expose 'allow-collisions' for 'guix install' Message-ID: References: <20230228062846.19516-1-atai@atai.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230228062846.19516-1-atai@atai.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61864 Cc: 61864@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Mon, Feb 27, 2023 at 10:28:46PM -0800, Andy Tai wrote: > * guix/scripts/install.scm: 'allow-collisions' option of 'package' > exposed for 'install' alias I'm curious, what's the rationale for this? From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 15:39:29 2023 Received: (at 61864) by debbugs.gnu.org; 2 Mar 2023 20:39:29 +0000 Received: from localhost ([127.0.0.1]:58469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXpi5-0000xV-EK for submit@debbugs.gnu.org; Thu, 02 Mar 2023 15:39:29 -0500 Received: from mail-qk1-f171.google.com ([209.85.222.171]:43710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXpi3-0000xH-0D for 61864@debbugs.gnu.org; Thu, 02 Mar 2023 15:39:27 -0500 Received: by mail-qk1-f171.google.com with SMTP id bl39so84232qkb.10 for <61864@debbugs.gnu.org>; Thu, 02 Mar 2023 12:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atai-org.20210112.gappssmtp.com; s=20210112; t=1677789561; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SCBWXvVD1V/VeyGwGdrfR2bsVkC4Ofkx0L51ibxupgc=; b=ZF/evDvkBYZKT6mRs7tQ3+TG+fPQwundiAVe1WNmncjaI4onZhnFwsP2OfSXOEmIf1 pdxClr0G0UJbCmVwDNQiEovZMhdlFKrH1leHfi83AlQ8vz18IzqKFULoEe09zDqj9IQp HU9by+ymwGtyKJTHskbt2MO8xvbPy9CQ15TCW6v+pWldFf9d7o9zCD9ybD5u4RAVNh4Y La/6605IB1LtOvl49VOORNJ36SY2VPpHQasJiTcCTQ1lqKkMbdWy8Isc/ikONkNdVVTD wGYI8ADhugUthNN5O6Fc6JzYfB/nHLh08ae4WVP6+ph+OHsA/dwv/SFYMd1W+IfD9OD1 0QfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677789561; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SCBWXvVD1V/VeyGwGdrfR2bsVkC4Ofkx0L51ibxupgc=; b=3LCqZiDeK7F/hcBooXTT0zdsnYNKGPilwIRhdUfBMSxvGfc4GC6iu8fZ1MGTL4/CE1 qd3lVp2XzYsoo0oXlb8aFW3RGqkE7ox+mO3ysu4eBRLVo00u8QR4qqMudp07/6mzsFDn NWiBkBes4aBLEzIax8x4YMUwYUDYsDBXje49HfIKdyAIa4xR/cTxM49NfbyKKouA8cZe 0lm6MMu8ZoPtAFdWUhnSc6NAQwnzrtpItb9YIPFYkzbVU/d+P3Y/rhrH6DuigwZ0dj7/ QLwJDwhJoVOOMs50NiZecSj06bQxXqaVG4X0Hhsr23RFHihqOHg3E4xbVwMf+sqygIGD cDSg== X-Gm-Message-State: AO0yUKWloHKgWYn4WIgKe32NKvbShjLzxxpMkxug1H/GkrtygCLiqFkW jLtWH6BUG+Tb95ExC6VkCCwxZfLSikXF1UWTwmq3MbLB X-Google-Smtp-Source: AK7set98XzmE2SkzA68RDQO+8dJdhzVk/wXUmZFMPdirjnhQAA0giRVfoP83vDhSPAb0seHZyT6RiudGUw9GNauJ0hU= X-Received: by 2002:a05:620a:11a9:b0:742:825d:2b07 with SMTP id c9-20020a05620a11a900b00742825d2b07mr2915908qkk.5.1677789561108; Thu, 02 Mar 2023 12:39:21 -0800 (PST) MIME-Version: 1.0 References: <20230228062846.19516-1-atai@atai.org> In-Reply-To: From: Andy Tai Date: Thu, 2 Mar 2023 12:38:45 -0800 Message-ID: Subject: Re: [bug#61864] [PATCH] scripts: expose 'allow-collisions' for 'guix install' To: Leo Famulari Content-Type: multipart/alternative; boundary="000000000000cc3e3105f5f0d29f" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 61864 Cc: 61864@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --000000000000cc3e3105f5f0d29f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I run into collisions in profile from time to time and I can resolve it via guix package --allow-collosions -i (or -u) so it is useful to make that available in the two "alias" commands as well On Thu, Mar 2, 2023 at 12:02=E2=80=AFPM Leo Famulari wr= ote: > On Mon, Feb 27, 2023 at 10:28:46PM -0800, Andy Tai wrote: > > * guix/scripts/install.scm: 'allow-collisions' option of 'package' > > exposed for 'install' alias > > I'm curious, what's the rationale for this? > --=20 Andy Tai, atai@atai.org, Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010 Year 2023 =E6=B0=91=E5=9C=8B112=E5=B9=B4 =E8=87=AA=E5=8B=95=E7=9A=84=E7=B2=BE=E7=A5=9E=E5=8A=9B=E6=98=AF=E4=BF=A1=E4= =BB=B0=E8=88=87=E8=A6=BA=E6=82=9F =E8=87=AA=E5=8B=95=E7=9A=84=E8=A1=8C=E7=82=BA=E5=8A=9B=E6=98=AF=E5=8B=9E=E5= =8B=95=E8=88=87=E6=8A=80=E8=83=BD --000000000000cc3e3105f5f0d29f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I run into collisions in profile from time to time and = I can resolve it via

guix package --allow-collosions= -i (or -u)

so it is useful to make that available in = the two "alias" commands as well

On Thu, Mar 2, 2023 at = 12:02=E2=80=AFPM Leo Famulari <leo@= famulari.name> wrote:
On Mon, Feb 27, 2023 at 10:28:46PM -0800, Andy Tai wrote:
> * guix/scripts/install.scm: 'allow-collisions' option of '= package'
> exposed for 'install' alias

I'm curious, what's the rationale for this?


--
Andy Tai, atai@atai.org, Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010=
Year 2023 =E6=B0=91=E5=9C=8B112=E5=B9=B4
=E8=87=AA=E5=8B=95=E7=9A=84= =E7=B2=BE=E7=A5=9E=E5=8A=9B=E6=98=AF=E4=BF=A1=E4=BB=B0=E8=88=87=E8=A6=BA=E6= =82=9F
=E8=87=AA=E5=8B=95=E7=9A=84=E8=A1=8C=E7=82=BA=E5=8A=9B=E6=98=AF= =E5=8B=9E=E5=8B=95=E8=88=87=E6=8A=80=E8=83=BD
=
--000000000000cc3e3105f5f0d29f-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 01:07:44 2023 Received: (at 61864) by debbugs.gnu.org; 3 Mar 2023 06:07:44 +0000 Received: from localhost ([127.0.0.1]:59443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXya0-0008KF-IW for submit@debbugs.gnu.org; Fri, 03 Mar 2023 01:07:44 -0500 Received: from mail-pj1-f41.google.com ([209.85.216.41]:37852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXyZy-0008K1-BY for 61864@debbugs.gnu.org; Fri, 03 Mar 2023 01:07:42 -0500 Received: by mail-pj1-f41.google.com with SMTP id me6-20020a17090b17c600b0023816b0c7ceso5132257pjb.2 for <61864@debbugs.gnu.org>; Thu, 02 Mar 2023 22:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677823656; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=iz9qeawVR7ygffprXJprwVDdzAMg3F/NRssx9CiqZeE=; b=H2lSN+O9PFjYNZlwcng3w5OvwBoeLvT10OP1wCCaEGst0Fmi4r7gbjUo5UAICU8TzA NVH22y1TeqBTmej34p8zKGCSr3A8ceRm+xWiUL+qQpKa5xF6irg7tqPErh+FDiH6dL23 VDTy1L0dzTy47ymt/WJZ4biINMqm8o8yO8FRifw6SJ4VOJSr/gSKeab+QVkknNEIegSs y1q1dxc/Cp9lCMZ4nd5U15/CjygxboidSKXk9RkE/+/3h57H9mdSE3Z8AFWYrQFAnVVk XEDznhjhL3XNKbFu9P8dRTzwoJvsRKelXlh03WQ36lYnYiZm7MNQEJA3vJR/1mOzVZKF vN+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677823656; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iz9qeawVR7ygffprXJprwVDdzAMg3F/NRssx9CiqZeE=; b=xzMjUDGwkCUMmRMHeuO7IZyKbt/qooj0DClIGPVa6Xvg7E0KD9rcyRNSRXelpJDmQI fiUarDwRCDrv7P1S+crxb6CA+4zLEtUDk4Tnu829beNdJAp2C+OY6EetZ9XS9yEGFMe9 XSSdC6NkDVztUZaJZ6DxtBAONYL4K5K/wA6xCOXM8guELzTVWdhwWor8tlVFb154nTfu hxHyGsb6O+x9qRjNYzeYsas8I2a2F++E4D2SIwbxCCr1Z/VJ09A2Ki+gUJYWZR5vSpg9 1fq+HCDHsEFCEsNH42osg891c2Ft3pKScWGgceu+GYH6rnnZOcHEb1Fg7pf9RnhxcYdE fH4A== X-Gm-Message-State: AO0yUKVadP9VNfaIivGcQON1DoWw6LMCa1skf4VBuUX7G1x5x7Qy6WaQ Z/e81/4aDlpdaxnpJsVS0HFrJF91I3s= X-Google-Smtp-Source: AK7set9icVauWL0s3VOMgVPx1VdvHmpUGh27F4YZUUh4fu0pl1B4OXnwZjGEG29/e1A7RuZChqwfvw== X-Received: by 2002:a17:90b:3ec3:b0:237:ae7c:1594 with SMTP id rm3-20020a17090b3ec300b00237ae7c1594mr590900pjb.8.1677823656019; Thu, 02 Mar 2023 22:07:36 -0800 (PST) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id y20-20020a17090aca9400b0023317104415sm2550517pjt.17.2023.03.02.22.07.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 22:07:35 -0800 (PST) From: Andy Tai To: 61864@debbugs.gnu.org Subject: [PATCH v2] scripts: Expose 'allow-collisions' for 'guix install' Date: Thu, 2 Mar 2023 22:07:32 -0800 Message-Id: <20230303060732.24744-1-atai@atai.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 61864 Cc: Andy Tai X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) * guix/scripts/install.scm: Expose 'allow-collisions' option of 'package' for 'install' alias --- guix/scripts/install.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guix/scripts/install.scm b/guix/scripts/install.scm index 63e625f266..4ab64b5b54 100644 --- a/guix/scripts/install.scm +++ b/guix/scripts/install.scm @@ -34,6 +34,8 @@ (define (show-help) (display (G_ " -p, --profile=PROFILE use PROFILE instead of the user's default profile")) ;; '--bootstrap' not shown here. + (display (G_ " + --allow-collisions do not treat collisions in the profile as an error")) (display (G_ " -v, --verbosity=LEVEL use the given verbosity LEVEL")) (newline) @@ -61,7 +63,8 @@ (define %options ;; Preserve some of the 'guix package' options. (append (filter (lambda (option) (any (cut member <> (option-names option)) - '("profile" "dry-run" "verbosity" "bootstrap"))) + '("profile" "dry-run" "verbosity" "bootstrap" + "allow-collisions"))) %package-options) %transformation-options base-commit: ea870a70e93e7ea93e35fa8e0afc3cfdb1b66ba2 -- 2.39.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 01 12:54:56 2023 Received: (at 61864-done) by debbugs.gnu.org; 1 Apr 2023 16:54:56 +0000 Received: from localhost ([127.0.0.1]:38500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pieVE-0008OI-A0 for submit@debbugs.gnu.org; Sat, 01 Apr 2023 12:54:56 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:33351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pieVB-0008NP-S0 for 61864-done@debbugs.gnu.org; Sat, 01 Apr 2023 12:54:55 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id D68773200970; Sat, 1 Apr 2023 12:54:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 01 Apr 2023 12:54:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=mesmtp; t=1680368087; x=1680454487; bh=hWoj7r/iuOUI+YvcjFFDR8vmNiDrMpBboPgymc9lnQU=; b= q0jdXt4ySdkdMSn/npb0VJl8DBZdJXcN4f1ZKEwdru01WCxTbHHME5Sawza9/cc6 bQEhJZwAC6mBooNmbU+ki2cLPF9CLkKJFbXzwuS/nYl61G3O+wWIsHccpMbYoI3s dfmIbhIBnBXTHIVfvEYRROVBzdnlXjCh2KoVzNTy++4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680368087; x=1680454487; bh=hWoj7r/iuOUI+ YvcjFFDR8vmNiDrMpBboPgymc9lnQU=; b=an7chFi+KB25B7PUTYq/Zexj5qaZA eBHLYqVwhjs91Iqeup9DEKFQBomipDo/2oP+B1+lg5QLevFjroIEvqAbdUnjCJyP Jm1pSXz7HWLfaOH/ky+JLdgX3EgkCLB+i8yHnllb/v8g/r5ttH0m2J1P91y6RkJF NzYIOqd8FhImSodt5wG1FB0hS3/11zGpdZJk29EITK6Wxf5fhjglHZmcGiaohNzc L2HyfZnLhmYPd7XZ6DBzApmJPP4IcTdyHDnvtPMG+3gZqBHH5VOVVt7/T6YkJbFG voyhlOOrvVhYny4iknWx+KtJ7RQsfZtpGX8jyBfeGwLsTdAKI6EdC6hCw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeifedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefnvgho ucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrg htthgvrhhnpeeiteduheefkeeufeelgeduhfejgfelheefleeuhfeffffgueduleehvdej leeiteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Feedback-ID: i819c4023:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 Apr 2023 12:54:46 -0400 (EDT) Date: Sat, 1 Apr 2023 12:54:44 -0400 From: Leo Famulari To: Andy Tai Subject: Re: [bug#61864] [PATCH] scripts: expose 'allow-collisions' for 'guix install' Message-ID: References: <20230228062846.19516-1-atai@atai.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61864-done Cc: 61864-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Thu, Mar 02, 2023 at 12:38:45PM -0800, Andy Tai wrote: > I run into collisions in profile from time to time and I can resolve it via > > guix package --allow-collosions -i (or -u) > > so it is useful to make that available in the two "alias" commands as well I see, that makes sense. Sorry I'm slow to reply, I thought about it for a while. Allowing profile collisions is a risky action that can cause subtle and hard to diagnose bugs, and it often is done without understanding the consequences. In my experience, collisions are often allowed by people who don't understand the negative effects of collisions, or how profiles are constructed. When reported, the consequent problems can take up a lot of time for the people trying to help. Because of those reasons, I prefer to only expose this option in `guix package`, which is a more advanced interface. My hope is that segregating the option like this will discourage use of '--allow-collisions' and prevent an increase in bug reports of the "user error" type. If you disagree, please feel free to reopen the bug and optionally CC some other reviewers, or bring it up on IRC. From unknown Sat Jun 21 10:43:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 30 Apr 2023 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator