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 ms0.migadu.com with LMTPS id yBPeCX/LWmFiSAEAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 11:38:07 +0200 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 SICbBX/LWmFKbQAA1q6Kng (envelope-from ) for ; Mon, 04 Oct 2021 09:38:07 +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 9446B2843A for ; Mon, 4 Oct 2021 11:38:06 +0200 (CEST) Received: from localhost ([::1]:46790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXKQ9-0000Gc-7c for larch@yhetil.org; Mon, 04 Oct 2021 05:38:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXKCY-00066A-NS for guix-patches@gnu.org; Mon, 04 Oct 2021 05:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXKCY-0006w1-FO for guix-patches@gnu.org; Mon, 04 Oct 2021 05:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXKCY-0002yq-Bz for guix-patches@gnu.org; Mon, 04 Oct 2021 05:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment' Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Oct 2021 09:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50960 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163333941111417 (code B ref 50960); Mon, 04 Oct 2021 09:24:02 +0000 Received: (at 50960) by debbugs.gnu.org; 4 Oct 2021 09:23:31 +0000 Received: from localhost ([127.0.0.1]:35683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXKC2-0002y4-Vy for submit@debbugs.gnu.org; Mon, 04 Oct 2021 05:23:31 -0400 Received: from pelzflorian.de ([5.45.111.108]:52084 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXKBz-0002xu-E3 for 50960@debbugs.gnu.org; Mon, 04 Oct 2021 05:23:29 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 4629836069D; Mon, 4 Oct 2021 11:23:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1633339406; bh=vaUW5qoqj/cNum4CLGZ6LPpMqiE8HfLRm2rgYX397Ok=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=HNSyfVKiPpZhxylce+aK+2aXcy1EgnKI7RaEba1KrZKMP3m8hogLC/nAoEL2GPnVO XrWgV0xCjFnvNdxkXGivw5RXeHOUdny4sPEaGRcJE/oIyostXVL3ABLVWnwYmY2B7k SJ+ukp3knIqx06kf7aA+Zew3L2Cq0gVKXOj2dyds= Date: Mon, 4 Oct 2021 11:23:17 +0200 From: "pelzflorian (Florian Pelz)" Message-ID: <20211004092317.576ffl52qm2g2utr@pelzflorian.localdomain> References: <20211002102116.27726-1-ludo@gnu.org> <20211002115958.rzupz4afq7elehq4@pelzflorian.localdomain> <87sfxjzgsv.fsf_-_@gnu.org> <20211002150851.7xa2wdb225dbjtpi@pelzflorian.localdomain> <87ee91ryg1.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87ee91ryg1.fsf@gnu.org> 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633340286; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SNYbCjb9R0LUktah9N84+1T0MTW22sgM9fkWkbtlvR8=; b=d+sDa3zyxMy7xg52c8Zw5J97Olc8FOyAG7SvnbRaYOBFCO+EL7plcJXwPhcIHBZqA3ut5S 7YeuQXEJ6+QTga7+B0i51jHTtr4hiQQWbaWJwuiGb5VN37lRGGZAnvs40Wv70rj/iudNet gLPju7UlhMELWuvizZTwMGvb0h/qU3x1Ivt+8QbuWfQUGp+7P1TM6kENnxeLoJb9eENzTR Q9I/ep+Z9mDr/At8U8IEa5cEoTf5u/I8nH8QL5x1v66Dymcb3mSYGZRFih1v8oL1+npjG4 hrChT4hKhNBTevY/ovl8qmNsXNaTrT3rg3M4lwFL3isI7/GhLd1tJp18oSkQ4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633340286; a=rsa-sha256; cv=none; b=F2jTzCqWTIRccWQGfrGCHnxhno4tEjnYKULfRLcsoCnti7KyBGD/63ZPq5mxmSwOKRmd3d YMe2GiWslhnxXuR4XvB9HMPq+e7iVnkY7/+/sJbEMom/ozMG4e1WkpLXsH3U0nRlfZsTmn Su3PKSB9ZwjcZczAPNwiCoWeFpEYcAGOeqToo6qWuOAYUaKyqxLgl7jQUf3nWT2LPVeuSX WHBHVWxclSGAfIvb/m56Parh+w8F/WFBU0VflVusiLKGqYdCeerEGyOjza6p23mGrQb6Be 42+6k7WOyzOHdt6c6pVsP3J+sgxpHanLQk/Ga1ZAJggaiv306668vAttmHaQZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=HNSyfVKi; 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-Spam-Score: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=HNSyfVKi; 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: 9446B2843A X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: +S0+oDDkqse8 On Mon, Oct 04, 2021 at 10:22:54AM +0200, Ludovic Courtès wrote: > "pelzflorian (Florian Pelz)" skribis: > > Let’s say I have downloaded undesirable code to a file > > /home/florian/Downloads/guix.scm and am hacking on source code in > > /home/florian/Downloads/something/ where I run `guix shell`, but > > /home/florian/Downloads/something/ does not in fact contain a > > guix.scm file. Now I’d have accidentally run the other guix.scm. > > Sure, but it’s all under your control; it’s not very different from > someone knowingly running “guix build -f guix.scm” on an untrusted file, > is it? What I meant is that I may wrongly expect a guix.scm file in /home/florian/Downloads/something/, but it is not there, so things go awry. `guix shell` loading files by default would mean one would have to pay attention to what one is doing, unlike `guix environment`. For example, not save unrelated (not even malicious) code by the name guix.scm, and not run guix commands without inspecting what they’d do. This I don’t like. > We have the advantage that ‘guix shell’ is a new command, so we can > document it from the start as behaving this way without arguments. Many people don’t read manuals. The probability of an accident is low, but it feels not robust. I can live with either (and am very happy you and others keep improving Guix), I just don’t think loading by default is a good idea. Regards, Florian