From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MJ5HNZKMS2ALIAAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 15:45:22 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YOcTMZKMS2DkGAAA1q6Kng (envelope-from ) for ; Fri, 12 Mar 2021 15:45:22 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 0E81720D59 for ; Fri, 12 Mar 2021 16:45:22 +0100 (CET) Received: from localhost ([::1]:38076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKjya-0001ne-Tb for larch@yhetil.org; Fri, 12 Mar 2021 10:45:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKjxR-0000nS-Rw for guix-devel@gnu.org; Fri, 12 Mar 2021 10:44:14 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:57737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKjxO-0000Uj-QC for guix-devel@gnu.org; Fri, 12 Mar 2021 10:44:09 -0500 X-Originating-IP: 92.169.147.163 Received: from bababa (lfbn-idf2-1-1335-163.w92-169.abo.wanadoo.fr [92.169.147.163]) (Authenticated sender: mail@ambrevar.xyz) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 81E191BF20D; Fri, 12 Mar 2021 15:44:02 +0000 (UTC) From: Pierre Neidhardt To: Lars-Dominik Braun Subject: Re: guix environment --profile with --ad-hoc In-Reply-To: References: <20210309020542.2f5afd65@runbox.com> <8735x4agc5.fsf@ambrevar.xyz> Date: Fri, 12 Mar 2021 16:44:01 +0100 Message-ID: <87r1kkml6m.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.201; envelope-from=mail@ambrevar.xyz; helo=relay8-d.mail.gandi.net X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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@gnu.org" , pkill9 Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615563922; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=BSQEwNkXPJpsPZrm+cXVWOmINNCNdk+PQ38lQXheDCQ=; b=F34JIhQJqJPcmqI6hQ2IkkvAXF4NFe/OkX/UkX/mmL5IwsGswW3lIlAs2vlc+2iIp75ufq CfqSAbc4HIxBrW2P1YC8kMrWvbN3bp1LdFz7e2OV83DZK/i0Pw5JGeYkWXLQAe3XBmjvX2 rwdxSVRXJZQQ+ZKrpqWzFVZsfy60YCB+33cG+FdszoNp4E5qXQSeVqRS4y6dU2g+NJJW34 7VfPG7P+qvRi5yuWfjoTUUir1lDFsPUnj2qVrs43Sr34SLpFB360BjM9+6I2gvh0mCbnV2 SQ8HagaalvF9jUQC+hk//GmFWcN6vaXWx6RHy8lSX8hGOygSFoBfGzrJMDHLRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615563922; a=rsa-sha256; cv=none; b=IF3JLHruCwsrkFWy/phMTcAHyx6f/4OYy64qHY2yAFgijzerqY853lDzmfoRiY8iq358q1 rWDS3lajA5OylR915A0nM7OxHYhPvrE5y7oO8VlN180dWTZgi6dKy7pTIm+1KEfqBUM6G0 EwGhMr5YWyaiPIVwam+wfpNEhCa431LuwAd1Z8xY+XnJbBeV0rkrt0ElKZbgOS6mrjo91Y n4dFrIpr/s0V6UBlYkX5W1W9uZwnYqU4Dd2O7+BOMtVLO1I/fWecliy68Zg4nMtNPAjf6R nJgjPBV0n3eCOP1xDkQe2xJKj3kCA3P7iEHd9l/rjFyxef64aKbU8Ne5SRvofA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.99 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 0E81720D59 X-Spam-Score: -1.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: /xHOhrtBkuRW --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi again, There is possibly a design flaw that prevents it from being completely super useful :) It'd be great if the command would be more "do-what-I-mean" when both package options and --profile are passed. Currently, I get =2D-8<---------------cut here---------------start------------->8--- $ guix environment -l ./build-scripts/guix.scm -r my-root -p my-profile guix environment: error: '--profile' cannot be used with package options =2D-8<---------------cut here---------------end--------------->8--- Instead, I'd like the following behaviour: =2D If "my-root" does not exist, load guix.scm and create link the resulting environment to my-root. =2D If "my-root" exists, do _not_ load guix.scm, instead load the profile as per my-profile. Optional: isn't --root superfluous when --profile is specified? Seems like it, so we could just do =2D-8<---------------cut here---------------start------------->8--- $ guix environment -l ./build-scripts/guix.scm -p my-profile =2D-8<---------------cut here---------------end--------------->8--- to get the aforementioned behaviour. What do you think? Lars? Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAmBLjEESHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/OjAH/jQAPac8kRBH86+13PihxXqYZE31gvsa T+n0LyHnyaOlEubTv5HSzhxkMPA5aZMnlPKcf+tbaVmFySg9IUqiU0GyrHVi4PJ/ tAGKnYeGvWPTlo6AcZpU/gmQm9Bc0tCGqwnNd+nUt2HsEGsFAbz8Y11LC/tTtKR+ 471GPsv0pfMB2Ge+BItLELS0xnm68oc4Ns03c+MEyOKOTXxFvnDALZqav7OAbpto HDJuovjNr49I8CnPPJKxphKdlh0uqnTI9ziJ7Cb1QC4YueXt163vU2CKkFZIStb9 ele1ix9HbYa1wHPXWXmjYD8VWLabtsLUQ6nLMn62aGd8DX8jEdbZTdM= =rsiq -----END PGP SIGNATURE----- --=-=-=--