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 KETkIhOGqV7EQgAA0tVLHw (envelope-from ) for ; Wed, 29 Apr 2020 13:50:11 +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 8H6+NhuGqV7QFAAA1q6Kng (envelope-from ) for ; Wed, 29 Apr 2020 13:50:19 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 6ABA394227C for ; Wed, 29 Apr 2020 13:50:17 +0000 (UTC) Received: from localhost ([::1]:42218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTn6O-0003GR-DJ for larch@yhetil.org; Wed, 29 Apr 2020 09:50:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40638) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTn62-0003Dy-SB for guix-devel@gnu.org; Wed, 29 Apr 2020 09:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTn5i-0006bt-Uk for guix-devel@gnu.org; Wed, 29 Apr 2020 09:49:54 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:43268) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTn5K-0005a7-Tq; Wed, 29 Apr 2020 09:49:10 -0400 Received: by mail-qt1-x831.google.com with SMTP id z90so1811992qtd.10; Wed, 29 Apr 2020 06:49:10 -0700 (PDT) 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; bh=elnNGdIIlI1KM50y5KzvGLub+7LRvVi/M5W32XXJIGw=; b=lHJkrFpvCLvn8SReVE8NjTDEsOYgHiU8ibq6xCuhHsyh31I76MhhMNEQTw8bZb84u1 GiHJ+C9gTk7iwmCQ5235sBPfmBL+gWIC1mzqQMiGZZ0kSUYND0DBLiLS52SBoXYQUIP6 Pqgi2YX1qjVn7GFCclTjRu1c5euYV3Xnpe5BLODh7ih1rcc6pXY6DUikfIo9vx1+k0qK 8ljvnm/gPPY5a57b6c9OCe0VjG2gYK0UVUjbGkhnuKdX9xfktzdR4ZPutsXVMfw9+eHj JhaPgD6tIHKxKMBqL6N2xhKuck4GYAgtc58aVRkhWRyypYuYs7OVqKeHPL8JyVxQJJdT 0saw== 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; bh=elnNGdIIlI1KM50y5KzvGLub+7LRvVi/M5W32XXJIGw=; b=gnO3z0Ej0jlXNW3AtLmzXxzp5+fI4PPdMXQzmfywTq5IpRsXbiZHgkgg/3dQVmu2dY WdD9Al5aREOUMsYD4nGOUpuecYHkFI7vFjnpRTF6Z8lWSRGqae2sfJxEGA+36tPnqpFs 6GbKfcCaoPy/DN039oiO7IODbaBURUdgf3PLUgkmjwnjLA+Gh6x1jkyt3V55r6V0rvjw xLthg0ErGWfxMJNfFqdX/VuQT9xGHd/h3i1/A/FnGUo6tH/GjBjSieeWmzXidm6mfKkp DCbFm6XGZk7TTRmB+qLV/QehTMpY88bAyfp+2yVFzDPeE1HIucDDSSi3l/SLf2DSKjYd /G/A== X-Gm-Message-State: AGi0PuYbIxo381kXj3ovOzwY+0ujpK+6UwSlHRoOHqn4mCN8uPQNlKfS LjNDcUAdqqcqIk3YhkLu47QrtijeN41ACRYrIkC3mgf5 X-Google-Smtp-Source: APiQypLr6qFaJdtpPW5pVGWUc6HZ9/iXg+DIk1F9RdxezlW4zWupvQQEew/z4X3/fvknXjSsR4wwZycNLMnKbzYVjtQ= X-Received: by 2002:aed:2bc1:: with SMTP id e59mr22854469qtd.313.1588168149330; Wed, 29 Apr 2020 06:49:09 -0700 (PDT) MIME-Version: 1.0 References: <490f77b9f9b0829f985ba717f6fbe008f54a816d.camel@gnu.org> In-Reply-To: From: zimoun Date: Wed, 29 Apr 2020 15:48:57 +0200 Message-ID: Subject: Re: Adding a subcommand "load-profile" To: Roel Janssen Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=zimon.toutoune@gmail.com; helo=mail-qt1-x831.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::831 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 X-Spam-Score: -1.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=lHJkrFpv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Scan-Result: default: False [-1.71 / 13.00]; GENERIC_REPUTATION(0.00)[-0.49332491593544]; DWL_DNSWL_FAIL(0.00)[gmail.com:server fail,2001:470:142::17:server fail]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.18), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; FROM_NEQ_ENVFROM(0.00)[zimontoutoune@gmail.com,guix-devel-bounces@gnu.org]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:email]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: mxuw9PtCZ7Nw Dear Roel, On Wed, 29 Apr 2020 at 14:46, Roel Janssen wrote: > > > If there is interest in having this as a "load-profile" subcommand, I will > > > post > > > an initial implementation to the mailing list ASAP. > > > > Instead of another subcommand, I would suggest to add an option to > > "guix environment". > > Then an another further step should maybe combine "--load-profile" and > > "--ad-hoc" in order to create a temporary "augmented" profile. > > I would strongly prefer to keep it backwards-compatible for our local HPC users. > Also, the "environment" command generates a new profile, whereas the proposed > "load-profile" merely applies the environment variables of an existing profile > to a newly spawned shell. I think the way they work differs enough to warrant a > separate subcommand. I understand that you would like to keep backward-compatibility with your current tools and ease the switch for your users. But you could do so by replacing all the shell code in the 'guixr load-profile' by "guix environment --load-profile". :-) On one hand, I am not convinced by adding another subcommand as I said above. :-) On the other hand, this new subcommand loading a profile could be the starting point of the "guix develop" subcommand that was mentioned some time ago. https://lists.gnu.org/archive/html/guix-devel/2019-10/msg00613.html https://lists.gnu.org/archive/html/guix-devel/2019-11/msg00019.html All the best, simon