From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Jan 2021 18:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45632@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16096987352599 (code B ref -1); Sun, 03 Jan 2021 18:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jan 2021 18:32:15 +0000 Received: from localhost ([127.0.0.1]:38614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kw8Ap-0000fp-B3 for submit@debbugs.gnu.org; Sun, 03 Jan 2021 13:32:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:36278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kw8An-0000fi-Gs for submit@debbugs.gnu.org; Sun, 03 Jan 2021 13:32:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw8An-0004rA-57 for guix-patches@gnu.org; Sun, 03 Jan 2021 13:32:13 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:51584) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw8Ak-0000N8-M5 for guix-patches@gnu.org; Sun, 03 Jan 2021 13:32:12 -0500 Received: (qmail 22418 invoked by uid 1009); 3 Jan 2021 19:32:07 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/26036. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.016152 secs); 03 Jan 2021 18:32:07 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 3 Jan 2021 19:32:07 +0100 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Sun, 3 Jan 2021 19:32:02 +0100 Message-Id: <20210103183202.11224-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=37.59.186.212; envelope-from=kuba@kadziolka.net; helo=pat.zlotemysli.pl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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: -3.3 (---) * guix/scripts/package.scm (warn-about-guix-in-profile): New procedure. (process-actions): Call WARN-ABOUT-GUIX-IN-PROFILE before executing transaction. --- Unresolved questions: - Is this the right place to put warn-about-guix-in-profile? - The warning message seems to be hard-wrapped. Is this the right line length? - Do we want to make this configurable? Some other warnings are, but in those cases it is the threshold that gets configured. In this case, there is no threshold. guix/scripts/package.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index 6faf2adb7a..bc42bd7d84 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2020 Ricardo Wurmus ;;; Copyright © 2020 Simon Tournier +;;; Copyright © 2021 Jakub Kądziołka ;;; ;;; This file is part of GNU Guix. ;;; @@ -863,6 +864,15 @@ processed, #f otherwise." (switch-generation . ,switch-generation-action) (delete-generations . ,delete-generations-action))) +(define (warn-about-guix-in-profile manifest) + "Emit a warning if MANIFEST contains a 'guix' package." + (when (manifest-installed? manifest + (manifest-pattern + (name "guix"))) + (warning (G_ "Installing the 'guix' package in a user profile is not recommended, +as it will conflict with the installation managed by 'guix pull'. Consider running +'guix package -r guix'.\n")))) + (define (process-actions store opts) "Process any install/remove/upgrade action from OPTS." @@ -928,6 +938,7 @@ processed, #f otherwise." (manifest-entries manifest))))) (warn-about-old-distro) + (warn-about-guix-in-profile new) (unless (manifest-transaction-null? trans) ;; When '--manifest' is used, display information about TRANS as if we -- 2.29.2 From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Cc: 45632@debbugs.gnu.org Received: via spool by 45632-submit@debbugs.gnu.org id=B45632.16100376175775 (code B ref 45632); Thu, 07 Jan 2021 16:41:02 +0000 Received: (at 45632) by debbugs.gnu.org; 7 Jan 2021 16:40:17 +0000 Received: from localhost ([127.0.0.1]:48425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxYKf-0001V5-7F for submit@debbugs.gnu.org; Thu, 07 Jan 2021 11:40:17 -0500 Received: from mail-qt1-f177.google.com ([209.85.160.177]:38049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxYKd-0001Uo-ID for 45632@debbugs.gnu.org; Thu, 07 Jan 2021 11:40:16 -0500 Received: by mail-qt1-f177.google.com with SMTP id y15so4632350qtv.5 for <45632@debbugs.gnu.org>; Thu, 07 Jan 2021 08:40:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=S6ts6jKHR10TaarIJSRcZNTj1GEYurF0PFU7QSc5OHg=; b=Vk66DTOHFMnsPUscTI/d2hUmmjGS/tcmI0S7a7YUxaJK8T0CsOcZl9bFqWOtmdbVWs WXVS6x1rp+1vwR01vW4odMslFKtFd5rlEdycniBxG75DGHIv1MhBeqhYUV+vs95EakBq 57kgMd7mtyabDZjiZF1Brbb0X+2xr1wTd5Rjp77xZ8l03HrDZDce1nrAYrg6ZLmj8V7g KlsDad77v1YAkWt8oclnIW6AYvuHELfSkaTLu0VTNZBfA35jkmOqfUohRylUUcoT1yNO GluEgv6CKyZKLB83MTabBcmcKAsvl0O7mhAmhjp5K84jMhuCk7G/HxOzArHg+1RR31R/ kiEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=S6ts6jKHR10TaarIJSRcZNTj1GEYurF0PFU7QSc5OHg=; b=Tq+NDG7iCS4Igf00qfiOLVvlia21FvftS3cyDBF86HkeJ+FcZCZSAxkvNkmjsuXnUW IkoOb1L3cWDMjxz8UVzMoO41Cp9grkt3YG0plS/o9YiE2e99ZPFyZLy6OgaShzA82up7 UoaJn5dmIcgWmP5gTJCeYqJ7paSLPC/NuqClgUtzXdenGf9f4ph9AO/Yq8NRGeR41nki Zh2uYjfxq8U12qgQdKTJIuk2rdV2Vp4JQgfbaJ4RzlQE9lYpw+yUoC2P9VFqoQCqL9IW SgJ76O52hRkiBPFPGBhZdxwi8QTtqdJIimJvfI97iISKKUYScyU0e96F0aLmk3ab5AdT XazQ== X-Gm-Message-State: AOAM531yoDBdPWVPATEb9P6Ac4uJs3fNEhyWdrpOaeLmM5mSH91b7hNY /CZupaQUg9HXXnLK9sW0GS2HrFUc4VNBh3ss190zoVYL X-Google-Smtp-Source: ABdhPJyTNGrA1PMUkR1+jENZ28CABHjshSjt7gs7u98BFH0JgN4eECJAlTa9q8OTRVgJaFmcKbvtN9qkeCPRqdFaWXw= X-Received: by 2002:ac8:7507:: with SMTP id u7mr9015014qtq.217.1610037609871; Thu, 07 Jan 2021 08:40:09 -0800 (PST) MIME-Version: 1.0 References: <20210103183202.11224-1-kuba@kadziolka.net> In-Reply-To: <20210103183202.11224-1-kuba@kadziolka.net> From: zimoun Date: Thu, 7 Jan 2021 17:39:58 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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.0 (-) Hi, On Sun, 3 Jan 2021 at 19:33, Jakub K=C4=85dzio=C5=82ka = wrote: > > * guix/scripts/package.scm (warn-about-guix-in-profile): New procedure. > (process-actions): Call WARN-ABOUT-GUIX-IN-PROFILE before executing > transaction. > --- > > Unresolved questions: > - Is this the right place to put warn-about-guix-in-profile? > - The warning message seems to be hard-wrapped. Is this the right > line length? > - Do we want to make this configurable? Some other warnings are, but in > those cases it is the threshold that gets configured. In this case, > there is no threshold. What is the use case? I have missed some context. For example, I have the package 'guix' in some of my profiles and I would be annoyed to be warned. And I have it for good reasons. :-) Once the story about extension is good enough, maybe the warning would be a good advice, otherwise it could be confusing. IMHO. All the best, simon From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 17:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Cc: 45632@debbugs.gnu.org X-Debbugs-Original-Cc: 45632@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by 45632-submit@debbugs.gnu.org id=B45632.16100397609497 (code B ref 45632); Thu, 07 Jan 2021 17:16:01 +0000 Received: (at 45632) by debbugs.gnu.org; 7 Jan 2021 17:16:00 +0000 Received: from localhost ([127.0.0.1]:48481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxYtE-0002T7-GK for submit@debbugs.gnu.org; Thu, 07 Jan 2021 12:16:00 -0500 Received: from tobias.gr ([80.241.217.52]:54284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxYtB-0002So-5O for 45632@debbugs.gnu.org; Thu, 07 Jan 2021 12:15:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=LN+6AAOEU7F2II+2BDpUUIfyLiAiN8DgoXY8Hd1jnYg=; h=date:in-reply-to: references:subject:cc:to:from; b=Y8Fqh0dDSQfAxs6sd8pjeyWCOBVJbesepZssT orS4oGEempAYj6kwZODPsw6R7dBmhAyyjynzzuYgmBt4ZBKLzqtIEN1vBX+O+jLt0EZtGs j9W5tqBys9RNMRC4itjqjSld/eOHXjUR7pndBJ14L5i4fb00uWN/0Ob1KA8lSEOjrwaaGy wsgvR31US6a86Wl6Tp9ThR41+U24RCTWPrKyWkeh5QHvOrjNcSGLNs/FhIKnfUFP/uyqQJ Gvq3NLe4Dl4oPE+TFxkxWuxXtpWgaAXGE23FuVJAWwW3p/qdsj2xnpKk/HkTXAK6N7fQk6 2+enm5yabO9ih9X2X06YZkfvw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id d2381f80 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Thu, 7 Jan 2021 17:16:25 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice References: <20210103183202.11224-1-kuba@kadziolka.net> In-reply-to: <20210103183202.11224-1-kuba@kadziolka.net> Date: Thu, 07 Jan 2021 18:15:56 +0100 Message-ID: <87eeiwllbn.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) 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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Jakub, Simon, How about warning on pull instead? That should address the =E2=80=98halp,= =20 me Guix be Benjamin Buttonin'=E2=80=99 support calls that I assume=20 inspired this. Simon, would that reduce the noise in your case? Jakub K=C4=85dzio=C5=82ka =E5=86=99=E9=81=93=EF=BC=9A > - The warning message seems to be hard-wrapped. Is this the=20 > right > line length? Avoid hard-wrapping output entirely, by =E2=80=99escaping=E2=80=99 the newl= ines (warning (G_ "like\ this.")) Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX/dBzA0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15tPkBAIKhTwWc5FUyIDzzoMq03J+axNnBcEiiVp4w43hP jA0GAQCBU753ejSSWtUtzFijVSlYxyyNYadfEKQErWO/X13tDQ== =T4v9 -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. References: <20210103183202.11224-1-kuba@kadziolka.net> Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "zimoun" Cc: 45632@debbugs.gnu.org Received: via spool by 45632-submit@debbugs.gnu.org id=B45632.161004047310671 (code B ref 45632); Thu, 07 Jan 2021 17:28:02 +0000 Received: (at 45632) by debbugs.gnu.org; 7 Jan 2021 17:27:53 +0000 Received: from localhost ([127.0.0.1]:48503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxZ4j-0002m3-9J for submit@debbugs.gnu.org; Thu, 07 Jan 2021 12:27:53 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:37490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxZ4g-0002lt-B7 for 45632@debbugs.gnu.org; Thu, 07 Jan 2021 12:27:52 -0500 Received: (qmail 6704 invoked by uid 1009); 7 Jan 2021 18:27:48 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/26041. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.013603 secs); 07 Jan 2021 17:27:48 -0000 Received: from unknown (HELO localhost) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 7 Jan 2021 18:27:47 +0100 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Thu, 07 Jan 2021 18:11:25 +0100 Message-Id: In-Reply-To: X-Spam-Score: 0.0 (/) 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.0 (-) On Thu Jan 7, 2021 at 5:39 PM CET, zimoun wrote: > Hi, > > On Sun, 3 Jan 2021 at 19:33, Jakub K=C4=85dzio=C5=82ka > wrote: > > > > * guix/scripts/package.scm (warn-about-guix-in-profile): New procedure. > > (process-actions): Call WARN-ABOUT-GUIX-IN-PROFILE before executing > > transaction. > > --- > > > > Unresolved questions: > > - Is this the right place to put warn-about-guix-in-profile? > > - The warning message seems to be hard-wrapped. Is this the right > > line length? > > - Do we want to make this configurable? Some other warnings are, but in > > those cases it is the threshold that gets configured. In this case, > > there is no threshold. > > What is the use case? I have missed some context. As the actual warning text explains, including the guix package in a profile loaded by default breaks the 'guix pull' update mechanism, as the guix package from the profile will take priority. This is inspired by some tech support on IRC where this turned out to be a root cause of a problem. Moreover, if I'm not missing anything, running 'guix package -u' with such a setup would *downgrade* the guix package each time. > For example, I have the package 'guix' in some of my profiles and I > would be annoyed to be warned. And I have it for good reasons. :-) Okay, I can see now that it is not wise to skimp on configurability for this. Though, I would like to hear more about your usecase - how do you keep your guix updated, for example? > Once the story about extension is good enough, As in adding your own commands under the 'guix $CMD' namespace, or something more sophisticated? For the former, git seems to have a quite good mechanism - we could borrow that. Regards, Jakub K=C4=85dzio=C5=82ka From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 17:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Cc: 45632@debbugs.gnu.org Received: via spool by 45632-submit@debbugs.gnu.org id=B45632.161004161012863 (code B ref 45632); Thu, 07 Jan 2021 17:47:01 +0000 Received: (at 45632) by debbugs.gnu.org; 7 Jan 2021 17:46:50 +0000 Received: from localhost ([127.0.0.1]:48570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxZN4-0003LP-4n for submit@debbugs.gnu.org; Thu, 07 Jan 2021 12:46:50 -0500 Received: from mail-qt1-f176.google.com ([209.85.160.176]:34515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxZN0-0003L2-HQ for 45632@debbugs.gnu.org; Thu, 07 Jan 2021 12:46:47 -0500 Received: by mail-qt1-f176.google.com with SMTP id 7so4823251qtp.1 for <45632@debbugs.gnu.org>; Thu, 07 Jan 2021 09:46:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RSXzQ6eMNeCXuHKYTr9d1sRd+ZlNhQKqOubdS/PWuYM=; b=LmGKO6bCE3tnPzX+bQsHmTkS4i03cYVQRjzJ5jS0vyAF/xHWcVllTSIFHkaox1WAyJ ILwM486fOVEXc049aWg5hCqpD0BskbndI5kNrOZ1h3esjIcRuPQhbwDWl4MtD9b1+w5K yCWIdYDrz6uXCp+T2Ef7TVjHkhcOK8bIIrdTytm0ymJ+KBGcucYlx8iliDkbicCTZYRv CweR7dggpDIMODANe0ugRIBlgjNPm/kF3v7iB+jAm0tjMKOl5rwVUmm5CllzE+BGl5uH +wSYvqylv6e8UatqELraJNlFahhRCaNqDnHJghSGqrcSSiQfZCPf+6GlDUdP18LUMrB/ 1cfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RSXzQ6eMNeCXuHKYTr9d1sRd+ZlNhQKqOubdS/PWuYM=; b=eE07JD/dwhYTHzBPgl1bgTxBqXOAtUdX53JJu/+0Yh10RxyTaQDLAp6PqRa+FF9fAx zw2w9Q7WRFwUGA4i4m7S+JTzi1vE4QDDxklmGmAQEXxjZtcDeWmCPUTNnW4yBJ1wUba5 fveUiNvJ8qgwWGISQovqQn5Vj8LeBPTFPvPyGPW4uyi0CSqzpWlDEXuj1svtEJFUk3Mp mdS6sAtaO5CUp+l+uubLklUrdvfRxiQQbHIp8GsMMlxKWJhlNKIvFlHvEytrDl+dc+bk Vxq4JudXtPw8cM0F3SGc+W16unIkakyCF5IR1NOSeYj+nicnr3aFrMttHzPKNWldUQzZ bGAQ== X-Gm-Message-State: AOAM530Otdq2rbZx+JtAk/PXnzRYTzhB2Tb1wJrGituU9bMnwIGLTeEx GVLTkfdDCi/F6PvEIEVyR88nB2qLgkdT2fhNljw= X-Google-Smtp-Source: ABdhPJySn1liAvGM0iEF4N8B7kVAb8rcZL71bH/x+/Ix60PfWkbi1EsUnxW2/JYpoefV2DCVSfM5g6FMYuA6KVmDdBg= X-Received: by 2002:ac8:4412:: with SMTP id j18mr2652607qtn.313.1610041600998; Thu, 07 Jan 2021 09:46:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Thu, 7 Jan 2021 18:46:29 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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.0 (-) Hi, On Thu, 7 Jan 2021 at 18:27, Jakub K=C4=85dzio=C5=82ka = wrote: > As the actual warning text explains, including the guix package in a > profile loaded by default breaks the 'guix pull' update mechanism, as > the guix package from the profile will take priority. Hum? I simply have ~/.config/guix/current/bin first in my PATH. Well, I have the package 'guix' in my profile since long time because of 'emacs-guix' and never hit an issue. > This is inspired by some tech support on IRC where this turned out to be > a root cause of a problem. Could you indicate the day? > Moreover, if I'm not missing anything, running 'guix package -u' with > such a setup would *downgrade* the guix package each time. I do not know, I never upgrade this way. Because I only use manifest.scm files. Even, from my personal taste '-u' and 'guix upgrade' are Guix abomination and should not exist; another story. ;-) Again if ~/.config/guix/current/bin first in the PATH, then it should not be an issue, I guess. > > For example, I have the package 'guix' in some of my profiles and I > > would be annoyed to be warned. And I have it for good reasons. :-) > > Okay, I can see now that it is not wise to skimp on configurability for > this. Though, I would like to hear more about your usecase - how do you > keep your guix updated, for example? Basically, "guix pull" and "guix package -m". But I am tracking this file "guix describe -f channels > channels.scm" and I also do "guix time-machine -C channels.scm -- package -m manifest.scm". Otherwise, when I want to give a try for a package, simply "guix environment --ad-hoc"; time to time with "time-machine" too. > > Once the story about extension is good enough, > > As in adding your own commands under the 'guix $CMD' namespace, or > something more sophisticated? For the former, git seems to have a quite > good mechanism - we could borrow that. >From my understanding, Git use shell tricks and cannot be borrowed. The idea is to have "guix "; for details, see the recent patch about extensions by Ricardo and discussion on #guix-hpc (because GWL is an extension). All the best, simon From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: me@tobias.gr, 45632@debbugs.gnu.org Cc: kuba@kadziolka.net X-Debbugs-Original-To: Tobias Geerinckx-Rice , Tobias Geerinckx-Rice via Guix-patches X-Debbugs-Original-Cc: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= , 45632@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161004221214281 (code B ref -1); Thu, 07 Jan 2021 17:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2021 17:56:52 +0000 Received: from localhost ([127.0.0.1]:48610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxZWl-0003iH-PZ for submit@debbugs.gnu.org; Thu, 07 Jan 2021 12:56:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:33822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxZWk-0003i8-7P for submit@debbugs.gnu.org; Thu, 07 Jan 2021 12:56:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxZWj-0004qZ-VE for guix-patches@gnu.org; Thu, 07 Jan 2021 12:56:49 -0500 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:43721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxZWi-0002Yu-Fj for guix-patches@gnu.org; Thu, 07 Jan 2021 12:56:49 -0500 Received: by mail-qv1-xf2f.google.com with SMTP id et9so3122812qvb.10 for ; Thu, 07 Jan 2021 09:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=rUN7IDcJgi+kLNPFKHhMW01OF6j6yl1jnLxJBJOifv8=; b=Gq9Qz8Wzerv/f9tjxpxwJtAE+7zkOXdu4bqfY9raQPHIefm0pyGxRs6qZ61cMTf/fX tltZ79AgORlLxDxVKARpO55yrSLstJVngWzBhlCuuwxhQOPRhvTqQWieg8KVbjgECpcf DioMBfNB0G3QcbBk/+lIIyQGfr7U2hXdOPKwyPN8B0duVkOnOP5f8jWDx1/TonLcg0Rl /gKmzqsEX7/AqcO5olCua3dz5LCN9s5FEQ0YG9H56Htn3z/MuKFXkzoEnvtKaTwl+RuZ u2BbqE53jGYS2xHK0bdX3+R+S77avRZLJ9wr5qDUhkjg/ieb8rarC4DlWZr2eWc5LEk0 rc/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=rUN7IDcJgi+kLNPFKHhMW01OF6j6yl1jnLxJBJOifv8=; b=SfmzlyYcK3Vtx/tr+bUZQjde+2Rqj6mLsATNAzRYNFX4AIWG8fNJ2zunuHHn+697wG oEifd5JXo4hIGVq1yQLGfvn0tvsK+M2k3B51izRpmJWFJ4v6eauCKztaV5mkKYkK3803 ca2fUnLamICopkoNoQsH/R8OTn3onZl0UNOvnN2932AdTq+OlU9z9BvrsatZz9LFeSrp XNxRRLl4aKji5M2uExpB/4Ofg0CN3pF0ApMpVnzl6eWzMclLOM6NvXuaTP8GDaK+HSis echUubfD+sKPnKQ3M5wPTa3pjR757tQGPk2+gizK52v7Chb0AKdqocfZcAf5w24Wjrtt ubDw== X-Gm-Message-State: AOAM533190ez9Wi14kumFONetGQWxEK4Q3dtCAOihdah47oDqaFFdK5z LGMNRqOIZqrEPOSXUQJbmUfFIK27ePCFaWUTHG4= X-Google-Smtp-Source: ABdhPJz+GLrfekbO/PBBsLg5vsk2U9w9U0Y8jkLDj0jJORaR6Kw827xEfz1cDLN3vATYo9+7fDN5O2C9tCjgBFZX/X4= X-Received: by 2002:a0c:df94:: with SMTP id w20mr9650093qvl.33.1610042207363; Thu, 07 Jan 2021 09:56:47 -0800 (PST) MIME-Version: 1.0 References: <20210103183202.11224-1-kuba@kadziolka.net> <87eeiwllbn.fsf@nckx> In-Reply-To: <87eeiwllbn.fsf@nckx> From: zimoun Date: Thu, 7 Jan 2021 18:56:36 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=zimon.toutoune@gmail.com; helo=mail-qv1-xf2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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.3 (--) Hi Tobias, On Thu, 7 Jan 2021 at 18:23, Tobias Geerinckx-Rice via Guix-patches via wrote: > How about warning on pull instead? That should address the =E2=80=98halp= , > me Guix be Benjamin Buttonin'=E2=80=99 support calls that I assume > inspired this. Wait, does someone install packages in the profile "~/.config/guix/current"? And does they install the package 'guix' in this profile? Nan... > Simon, would that reduce the noise in your case? I am not sure to understand what the problem is; I should miss something. My config is simply '~/.config/guix/current/bin' first in my PATH and I am doing it manually with ~/.bash_profile. And I have a lot of profiles that are sourced with a for-loop, some of them contain the package 'guix'. And I have never hit an issue but I do not use 'upgrade'. Howver, I am mainly using Guix on Debian. Is the issue Guix System specific? Well, if the conflict is between the package 'guix' and the 'upgrade' command, then the warning should be there, IMHO. All the best, simon From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. References: <20210103183202.11224-1-kuba@kadziolka.net> Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 18:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimon.toutoune@gmail.com, me@tobias.gr, 45632@debbugs.gnu.org X-Debbugs-Original-To: "zimoun" , "Tobias Geerinckx-Rice" , "Tobias Geerinckx-Rice via Guix-patches" X-Debbugs-Original-Cc: 45632@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161004386126206 (code B ref -1); Thu, 07 Jan 2021 18:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2021 18:24:21 +0000 Received: from localhost ([127.0.0.1]:48663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxZxM-0006oa-Ks for submit@debbugs.gnu.org; Thu, 07 Jan 2021 13:24:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:38520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxZxK-0006oR-IF for submit@debbugs.gnu.org; Thu, 07 Jan 2021 13:24:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxZxK-0003tx-Cm for guix-patches@gnu.org; Thu, 07 Jan 2021 13:24:18 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:53648) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxZxI-0004V9-3U for guix-patches@gnu.org; Thu, 07 Jan 2021 13:24:18 -0500 Received: (qmail 26568 invoked by uid 1009); 7 Jan 2021 19:24:07 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/26041. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.04253 secs); 07 Jan 2021 18:24:07 -0000 Received: from unknown (HELO localhost) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 7 Jan 2021 19:24:07 +0100 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Thu, 07 Jan 2021 18:58:14 +0100 Message-Id: In-Reply-To: Received-SPF: none client-ip=37.59.186.212; envelope-from=kuba@kadziolka.net; helo=pat.zlotemysli.pl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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: -3.3 (---) On Thu Jan 7, 2021 at 6:56 PM CET, zimoun wrote: > Well, if the conflict is between the package 'guix' and the 'upgrade' > command, then the warning should be there, IMHO. The upgrade command is not part of the problem here, the same can be observed if you use 'guix package -m' instead. You avoid the problem by putting ~/.config/guix/current/bin first in your path. I just checked, and that is the default on Guix System. However, on a foreign distro, ~/.guix-profile/bin will be first in $PATH unless the user intervenes with manual configuration. In light of this, perhaps a better solution would be to unify the profile loading in foreign-Guix's /etc/profile/guix.sh with Guix System's /etc/profile? The problem with that is, /etc/profile/guix.sh is only created once by guix-install.sh, and doesn't get updated... perhaps *this* is something worth fixing, to start with? > > How about warning on pull instead? That should address the =E2=80=98ha= lp, > > me Guix be Benjamin Buttonin'=E2=80=99 support calls that I assume > > inspired this. > > Wait, does someone install packages in the profile > "~/.config/guix/current"? And does they install the package 'guix' in > this profile? Nan... Nah, the scenario is much less convoluted: 1. $PATH contains ~/.guix-profile/bin:~/.config/guix/current/bin, in that order, as that is currently the default on a foreign distro. 2. User adds the guix package to their ~/.guix-profile. This doesn't need to happen with 'guix package -i', in fact the IRC conversation that inspired this [1] (though I seem to recall earlier occurrences of the same problem) the user was making use of a manifest file. It might even be easier to encounter this with a manifest file due to its clean-slate nature. 3. ~/.guix-profile/bin/guix now takes priority. This means - guix describe doesn't work - guix pull has no effect - guix package (-u or -m) will use an older 'guix' package than is currently installed, as a packaged guix version doesn't contain the package definition of itself, but the one that was previously packaged. I hope this helps resolve your confusion. Regards, Jakub K=C4=85dzio=C5=82ka [1]: http://logs.guix.gnu.org/guix/2021-01-01.log#163217 From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 19:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Cc: 45632@debbugs.gnu.org, me@tobias.gr X-Debbugs-Original-Cc: 45632@debbugs.gnu.org, Tobias Geerinckx-Rice , Tobias Geerinckx-Rice via Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.16100475551196 (code B ref -1); Thu, 07 Jan 2021 19:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2021 19:25:55 +0000 Received: from localhost ([127.0.0.1]:48701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxaux-0000JE-HV for submit@debbugs.gnu.org; Thu, 07 Jan 2021 14:25:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:51834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxaut-0000Is-DA for submit@debbugs.gnu.org; Thu, 07 Jan 2021 14:25:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxaut-0001KM-7c for guix-patches@gnu.org; Thu, 07 Jan 2021 14:25:51 -0500 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:46934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxaup-0000E8-66 for guix-patches@gnu.org; Thu, 07 Jan 2021 14:25:50 -0500 Received: by mail-qv1-xf2d.google.com with SMTP id p12so3261018qvj.13 for ; Thu, 07 Jan 2021 11:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=akTuJ2dvjKuju9dJcUZpo3uOYUzWVR+aNloC2upNcbs=; b=oVzUDmr2rARy9Xon65OTj1n3gWXTlXPTxfEY3yWJS3Bb+qXFux//Oxf8Z+i+6RGXoR dV/XADVkgwftaa3aP0LhH8aTlEZuqA7ZQFatGlZKAy4U1Q9hWR/8b7bIOYVHRdUT+Jml BUMVVKaYmCdAEnnLvLoYVSHpL+ySLogTJKB3n1uggttKdd0MX4fREQRIZz80aa6jLQGh J2Cg3JRZi9D0jwDIhtuSstCQOq9cq6i4AcupWeRStAipAOck5Bw8p0/RN+LwvSSbwtE1 KacJ1MQvEvqdxt3bTBklLfB3trItG4Ixbdf7mDR5PFGbO7TPxSOhD8hXd/nN2iHP99KA ujzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=akTuJ2dvjKuju9dJcUZpo3uOYUzWVR+aNloC2upNcbs=; b=l1WsBfYuxA/2HKuGq2ak2DJ2T4HjTf4R2KPug/VWjA8vLMrSsmIcsRaYu4njGHKs2K mkzommfPCt9EZl5K+FbwO4voHIBTcXegZF9YJl5uLUGfVTJ+8+Zrn27cf0nmo8nKqBRV VkXYd4alySkpGHuRScTE9LeZhKXw3cgfzbIq9D2q01CJzhaw2Cu76eAnX6ghJxViQUxQ AsF+Z4u9zWdNL6zjkQvhxEyeBjnucn4wXSQhVYs+SGEznzgEu5n/xxB2xOtYU0jKrqHW zbckwfpJQ0qgKNpakXjUtCPCGr7BJ8sTbSIUho67qvv8+ZNscp9HQfZWyO8P9EKqHBwo QOAg== X-Gm-Message-State: AOAM531QAlrvtVXfCuGrxe5zxINT2MGKSOlULN4bl16GWVL/PUBrf1CW lLo0LmV65kjJZsyiOR0fkCzGRKj6vyErHn7Ynmc= X-Google-Smtp-Source: ABdhPJyi9xj7qMuQ/G5PKja5m8jsvY4dYRkBkKixZRdDJHCLsGGGoIyEGxyEkYND+NJHJvMglM122qVwIZFBdPd66mo= X-Received: by 2002:a0c:b9a8:: with SMTP id v40mr359931qvf.36.1610047545500; Thu, 07 Jan 2021 11:25:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Thu, 7 Jan 2021 20:25:34 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=zimon.toutoune@gmail.com; helo=mail-qv1-xf2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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.3 (--) Hi, On Thu, 7 Jan 2021 at 19:24, Jakub K=C4=85dzio=C5=82ka = wrote: [...] > The problem with that is, /etc/profile/guix.sh is only created once by > guix-install.sh, and doesn't get updated... perhaps *this* is something > worth fixing, to start with? [...] > I hope this helps resolve your confusion. Thanks for the explanations. Yes, maybe guix-install.sh and /etc/profile/guix.sh should be fixed before adding a warning. Because somehow, the problem is not to have the package 'guix' but the order in PATH. All the best, simon From unknown Fri Jun 13 10:41:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#45632] [PATCH] guix package: Warn if uses has 'guix' package in profile. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: kuba@kadziolka.net, 45632@debbugs.gnu.org X-Debbugs-Original-Cc: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= , 45632@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16100515409548 (code B ref -1); Thu, 07 Jan 2021 20:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2021 20:32:20 +0000 Received: from localhost ([127.0.0.1]:48756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxbxD-0002Tv-VV for submit@debbugs.gnu.org; Thu, 07 Jan 2021 15:32:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:34394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxbxB-0002Tg-7B for submit@debbugs.gnu.org; Thu, 07 Jan 2021 15:32:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxbx6-00058d-K0 for guix-patches@gnu.org; Thu, 07 Jan 2021 15:32:16 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxbwz-0006yn-DU for guix-patches@gnu.org; Thu, 07 Jan 2021 15:32:11 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1610051520; cv=none; d=zohomail.com; s=zohoarc; b=TZaAKvDrnSAhQ2hbvPiOcZh/tFUkfhCe72dH1UQY5ID4xzqFqCQPIxGKVB6WpEfKiw6lE9pPOYLDSEgNHWkWXbEeqckjO/jVH9ct5DTZkh0vNnP2K/aGIeqhwg+49hGzKrNokz8snVpGa7CC88Ff3OMQ5TGBvwoR3ReHUFsKPzo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610051520; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=gfkWkSNFz+AFV0lQX6F47y4F/LS+2Qmo1pRxBDBQ7aU=; b=BLvZ9wXx/kBn5cXnOtE8jCUonLC5OCbenFmMxn3mqxnSZ9WwxZgPX0fsXEjt3br95FEu1PNNBQcrMlYtlMeCjtx4XbwW9mciUCAyp0WNCgiOd6HI001g/gSAyoH3sG+wZbvuWwnCEDqeQw7w0pLeI6r5KttO7nnsk0fdiH7Szbg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1610051520; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=gfkWkSNFz+AFV0lQX6F47y4F/LS+2Qmo1pRxBDBQ7aU=; b=eNH9iJnQ2NdWujaeUmxn8tyqhLMpe8rEnoiVzW6cFokGV3i79jzBxOvZcIPycn20 4A6F/ZchUmehNxvueSQHIfxaaukUvrf74oNtQ0JRRJ4g7oSxSfoPIATMw5fTluYZfZF o+jX9Krkxr/S0pr1EVJ7EmITUNM3dsW9gGMjJMMo= Received: from localhost (p54ad4d98.dip0.t-ipconnect.de [84.173.77.152]) by mx.zohomail.com with SMTPS id 161005151771734.2144820808096; Thu, 7 Jan 2021 12:31:57 -0800 (PST) References: User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 07 Jan 2021 21:31:53 +0100 Message-ID: <87y2h4fpza.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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.3 (--) zimoun writes: >> > Once the story about extension is good enough, >> >> As in adding your own commands under the 'guix $CMD' namespace, or >> something more sophisticated? For the former, git seems to have a quite >> good mechanism - we could borrow that. > > From my understanding, Git use shell tricks and cannot be borrowed. > The idea is to have "guix "; for details, see the recent patch > about extensions by Ricardo and discussion on #guix-hpc (because GWL > is an extension). This is a solved problem as far as I=E2=80=99m concerned. (It still needs = to be documented in the manual and maybe in the cookbook.) You need to set GUIX_EXTENSIONS_PATH to a location that contains a Guile module =E2=80=9C(guix extensions my-command)=E2=80=9D that defines =E2=80= =9Cmy-command=E2=80=9D with =E2=80=9Cdefine-command=E2=80=9D (so it needs to import (guix scripts)). T= he category should be =E2=80=9Cextension=E2=80=9D (it=E2=80=99s a new category that has= been added recently). As long as that=E2=80=99s the case Guix will be able to list it in =E2=80= =9Cguix --help=E2=80=9D and execute it. Here is the entry point of the Guix Workflow Language, which uses this very mechanism: https://git.savannah.gnu.org/cgit/gwl.git/tree/guix/extensions/workflow= .scm.in --=20 Ricardo