From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eOjVFChx918jBQAA0tVLHw (envelope-from ) for ; Thu, 07 Jan 2021 20:38:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KJScEChx918TfwAAB5/wlQ (envelope-from ) for ; Thu, 07 Jan 2021 20:38:00 +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 1940E9403A9 for ; Thu, 7 Jan 2021 20:38:00 +0000 (UTC) Received: from localhost ([::1]:57762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxc2g-0004OO-T1 for larch@yhetil.org; Thu, 07 Jan 2021 15:37:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxbxu-0006En-PO for guix-patches@gnu.org; Thu, 07 Jan 2021 15:33:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxbxu-0007HY-HJ for guix-patches@gnu.org; Thu, 07 Jan 2021 15:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxbxu-0002VN-DX for guix-patches@gnu.org; Thu, 07 Jan 2021 15:33:02 -0500 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 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-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: kuba@kadziolka.net, 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: 0.65 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=elephly.net header.s=zoho header.b=eNH9iJnQ; arc=reject (signature check failed: fail, {[1] = sig:zohomail.com:reject}); dmarc=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: 1940E9403A9 X-Spam-Score: 0.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: WBo2KYTU2/2H 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