From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KJcQCCBJ91//cwAA0tVLHw (envelope-from ) for ; Thu, 07 Jan 2021 17:47:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kOLoAyBJ91+jJQAA1q6Kng (envelope-from ) for ; Thu, 07 Jan 2021 17:47:12 +0000 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 3F3A19402A0 for ; Thu, 7 Jan 2021 17:47:11 +0000 (UTC) Received: from localhost ([::1]:48898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxZNO-0004KK-0e for larch@yhetil.org; Thu, 07 Jan 2021 12:47:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxZNG-0004Ie-1Q for guix-patches@gnu.org; Thu, 07 Jan 2021 12:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxZNF-0006SD-P1 for guix-patches@gnu.org; Thu, 07 Jan 2021 12:47:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxZNF-0003M3-MP for guix-patches@gnu.org; Thu, 07 Jan 2021 12:47:01 -0500 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?= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45632@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.25 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=LmGKO6bC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3F3A19402A0 X-Spam-Score: -1.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: uMT1GHil6cF+ 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