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 2K6hCRyjoV9fGAAA0tVLHw (envelope-from ) for ; Tue, 03 Nov 2020 18:36: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 QpSMBRyjoV9jEgAA1q6Kng (envelope-from ) for ; Tue, 03 Nov 2020 18:36: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 AF2FB9401CD for ; Tue, 3 Nov 2020 18:36:11 +0000 (UTC) Received: from localhost ([::1]:47304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka1A9-0001uc-CD for larch@yhetil.org; Tue, 03 Nov 2020 13:36:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka1A2-0001uF-Lz for bug-guix@gnu.org; Tue, 03 Nov 2020 13:36:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ka1A2-0007hB-Ck for bug-guix@gnu.org; Tue, 03 Nov 2020 13:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ka1A2-0008PX-9w for bug-guix@gnu.org; Tue, 03 Nov 2020 13:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#38529: Make --pure the default for `guix environment'? Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 03 Nov 2020 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38529 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Christopher Lemmer Webber Received: via spool by 38529-submit@debbugs.gnu.org id=B38529.160442854032302 (code B ref 38529); Tue, 03 Nov 2020 18:36:02 +0000 Received: (at 38529) by debbugs.gnu.org; 3 Nov 2020 18:35:40 +0000 Received: from localhost ([127.0.0.1]:46389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka19g-0008Ou-Dq for submit@debbugs.gnu.org; Tue, 03 Nov 2020 13:35:40 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:33037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka19f-0008Og-BT for 38529@debbugs.gnu.org; Tue, 03 Nov 2020 13:35:39 -0500 Received: by mail-wr1-f54.google.com with SMTP id b8so19589807wrn.0 for <38529@debbugs.gnu.org>; Tue, 03 Nov 2020 10:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=ax7nSS74bYL/CC1JaK9Drihxp6QdWQM/j7Zj4HFnrTY=; b=USotNGLf9YiJd5VJIA+/rJTmQI5OOrU9Q0vKd5Z+wz7F1xFihN4Wyj/WlWhm9+Xj5W PyhcL0spmHom32lfj21MGxs+LDfz5wnUpr74sKxJc95dmcaUQR/EuBaUflbc5VqGnWts eHwXuRWNV59GHYiEPjGVxjCsrFMsNGPzJt8lzPI81iD2aAa56O+4/pjdImWQRI54MK4m RzsV4AKJdAjz+Dw1ZUTwGYh4gXHA9WnKdTlZfjyPTedAErjyGkfmOPii2KXo3DblPb/u 995Nlv3d43/Z5DE5GzZvacyCIwNhHMc8SuVdLP+xAnldUEsRy1hhTHtfsDGJaYSh2QEg 7YTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=ax7nSS74bYL/CC1JaK9Drihxp6QdWQM/j7Zj4HFnrTY=; b=CDkgqQPKzaCcn9XiNyFgX0LhAjGlCPJuBBtRR9qgHZcde2Z1Iru/oJh6/2aKQpqdh4 M0BmA2YlUztf+QGw5OgKdLTmDCEnzUf8XSywhcJRxECtu22N+xyzFUOTu6wz8nWn29fR FwfW10eaN19Z7ypUX4NMsOP/I5LfaYG4kSSGTL9zgRWojSoYAsn52Q0894u6Qc9hLc53 Pu4W5S8dlpO1jqev5Pq+spsCPl/VfgP6tpD2NJDl35IugShlYrt/yTlQwCuiKz6zwmK5 /OD7P186QdmT2jdmHrkd7HOuKUHMuHKSYdVv1m20FgFnXT11MpVVamwq5de6HoALCIOe Mhuw== X-Gm-Message-State: AOAM530e0cicIwvl9itCsn4nHW8XCXDapSxBwcFN3V23IAIPEGo8AvUW cx1pBok5UR068/6CZKT9YSo= X-Google-Smtp-Source: ABdhPJxxGDxWwTVIQMX3EvW1WrQb3WIpC051ArBiyW0xP72BHuC9wJewX5mLBnh8Ceuxe5Z7UKXVug== X-Received: by 2002:adf:ec0e:: with SMTP id x14mr29696008wrn.204.1604428533534; Tue, 03 Nov 2020 10:35:33 -0800 (PST) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id j9sm27020634wrp.59.2020.11.03.10.35.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 10:35:33 -0800 (PST) From: zimoun References: <87eexeu8mo.fsf@ambrevar.xyz> <87o8wgksnp.fsf@gnu.org> <87y2jiwdba.fsf@dustycloud.org> Date: Tue, 03 Nov 2020 19:35:32 +0100 In-Reply-To: <87y2jiwdba.fsf@dustycloud.org> (Christopher Lemmer Webber's message of "Tue, 03 Nov 2020 12:38:33 -0500") Message-ID: <87y2jie1aj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 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 X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mail@ambrevar.xyz, 38529@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=USotNGLf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: bI5o+v5wwMbQ Hi, On Tue, 03 Nov 2020 at 12:38, Christopher Lemmer Webber wrote: >> Ideas on how to achieve it are welcome! [..] > It suddenly struck me today that there is an easy way to change the > default behavior while supporting the legacy behavior. > > How about we have a new command, "guix env", what is --ad-hoc by > default? Then "guix environment" sticks around as legacy for supporting > the old interface. Therefore, "guix env" is doubly short and to the > point. :) Rehashing all that, and because different POV on CLI pops up sometime, one move should be to have =E2=80=9Caliases=E2=80=9D [1]; I am sure the ide= a already came long time before but I do not find the thread. My understanding of the situation: 1- specific "guix foo" case: implement something like Alice proposed 2- add a mechanism to have aliases. Replace =E2=80=99foo=E2=80=99 by =E2=80=99environment=E2=80=99, =E2=80=99gr= aph=E2=80=99, =E2=80=99search=E2=80=99, =E2=80=99show=E2=80=99, etc. Let's expand explanations about the #2. Now with =E2=80=9Cguix repl=E2=80=9C, the user can extend Guix by their own= scripts. Therefore, it could be nice: a) to have a location by default (say ~/.config/guix/scripts) b) to run them with "guix foo" instead of "guix repl -- ~/.config/guix/scripts/foo.scm". And then, we are all be happy. ;-) It eases the tests of new experimental command-line tools, one can locally change the behaviour of =E2=80=9Cguix environment --ad-hoc=E2=80=9C, one ca= n experiment with new output formats for =E2=80=9Cguix search=E2=80=9C instead of =E2=80= =99recutils=E2=80=99, etc.. And using channel as =E2=80=9Chome-manager=E2=80=9D or GWL [2] show, we cou= ld even easily exchange them. Somehow. Well, the philosophy of custom extensions. WDYT? All the best, simon 1: 2: related recent patch by Ricardo: