From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uBGGKLRrWWEaFAAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 10:37:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oEhXJLRrWWFEZgAA1q6Kng (envelope-from ) for ; Sun, 03 Oct 2021 08:37:08 +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 C181C11FB5 for ; Sun, 3 Oct 2021 10:37:07 +0200 (CEST) Received: from localhost ([::1]:51972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWwzb-0004ps-03 for larch@yhetil.org; Sun, 03 Oct 2021 04:37:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWwzW-0004pj-9V for guix-patches@gnu.org; Sun, 03 Oct 2021 04:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWwzW-0000vA-1b for guix-patches@gnu.org; Sun, 03 Oct 2021 04:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWwzV-0007Xx-Jh for guix-patches@gnu.org; Sun, 03 Oct 2021 04:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment' Resent-From: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Oct 2021 08:37:01 +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: Vagrant Cascadian , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163325021128975 (code B ref 50960); Sun, 03 Oct 2021 08:37:01 +0000 Received: (at 50960) by debbugs.gnu.org; 3 Oct 2021 08:36:51 +0000 Received: from localhost ([127.0.0.1]:60968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWwzK-0007XG-Hd for submit@debbugs.gnu.org; Sun, 03 Oct 2021 04:36:50 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:39861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWwzI-0007Wo-Ej for 50960@debbugs.gnu.org; Sun, 03 Oct 2021 04:36:49 -0400 Received: by mail-ed1-f48.google.com with SMTP id x7so50802697edd.6 for <50960@debbugs.gnu.org>; Sun, 03 Oct 2021 01:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=03LroDvrvFfshWJtbxlILIJbOcUEgEeP9wTevp7uFKo=; b=T61PnS4H36mC8HPIWhsR6v/QWhtWK12ejQm2YROtyne1piUT0ONHqKVjVE+Kw/acrq qDUzg9W08/D3swhs9xSgzbDWxxPm4Abov8kV6XeZdGn5vzfB4EA8GjEbkKNrtRKSP56/ lqVT+H7rhytikgA34rxsbjyxBfzO9MczMg3CXZLQNWHdoKscIvOXwkrP1lRYy0yLpN5f VHUMxDp4Tg9ec+jDJPGEUY1vohBLvOq/5cJV+zKrwPgLtTUQddJdH7QncHqKS2577Edh 6Y4/UcRUCvZaA0p6xbSf/eKsjhlApkPiy9gxcuLo9qBl3FR+ujwtqGK7u9r90/8MF2dL lyNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=03LroDvrvFfshWJtbxlILIJbOcUEgEeP9wTevp7uFKo=; b=GQ/4GpPe7T2Q/albDz2xBKgjETDueRMhLPIN/cdUc9SYmrt5aOv8NC7foQFlkQz8jV R8MBx4sr2xAckE6ayKOPmJtNe+YUTu/e7GytQbbYADJmAJWAn1lCTeqE3/42nswTBStL LaplIOsaiDpMKdBqXTreUugQb4/TFa1ODGDMHVXLKERm3T5FZEuDB5HVuKtmbblGHHg3 ZKEy9sMKrnqsO2s66nc32PEjCvvQGx0ICgCAm35TSPOOELWvLkgyf9LrNRfAm0L9qn5Z be1QOtQchCnUuMwxAjBcONJwYaQy1VOPN7yNMYxBR8baPO0WHiROVyhIm0jiI15DLSMH j0Ag== X-Gm-Message-State: AOAM532MKT6e+jFUAhdnAoFH73SfJxcmiXOV9Lm/AJrDo/So3iUcGwoY xzxJnENyiX9DkItfXTfJpEk= X-Google-Smtp-Source: ABdhPJxIXdvL+4Rc4btdaQvyxbDrY0G+dIp3JwF3J81+JRSl7SfKgoC7zPJpG/+BabkY7O4IJ86cyQ== X-Received: by 2002:a17:907:7755:: with SMTP id kx21mr9145518ejc.463.1633250202275; Sun, 03 Oct 2021 01:36:42 -0700 (PDT) Received: from localhost (host-79-16-165-197.retail.telecomitalia.it. [79.16.165.197]) by smtp.gmail.com with ESMTPSA id bj10sm4981857ejb.17.2021.10.03.01.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 01:36:41 -0700 (PDT) From: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti In-Reply-To: <871r53htdv.fsf@yucca> References: <20211002102116.27726-1-ludo@gnu.org> <871r53htdv.fsf@yucca> Date: Sun, 03 Oct 2021 10:36:40 +0200 Message-ID: <87zgrqijxj.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1633250227; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=03LroDvrvFfshWJtbxlILIJbOcUEgEeP9wTevp7uFKo=; b=H/i94d2RTcpRDJ4YRkyK/Wpj6juJHFWQFfOaaGcuhBplv/vzzS9vjG5EmP8hpcJ5Ue/2CX tV1KvOEhbWm0SfsyhqmZ6P19N5OSEile7pvGKlGJNRC08hbGR15abSnjCl5cHH9TOA7gP7 O5MoXMGTinyU2tv/16g2lwyJnYvEtqsNM6h5jKc2w7Y1dHrF+MecItIQ0ynPOgCVLvQnWU BFOYXyu0BD7IalIfypRgG8zIzdoXPMB1MA40nix20P1IlBbQrXwLy+2+jKjP7aHf9pBru6 +jZ0+RNbULcMjXtrDwnMNEVwG1tsHjHCD4VUblfCyF448i/VElQuDLrs6asMrw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633250227; a=rsa-sha256; cv=none; b=QPe8nbaSXS7TOgT+SFVektY5UIXZMayvn6hM+rl+SgOdWgj8ngUp+8gkCTyP8NxiwIBMwX YzKVljOaV4i+8pvstnte2sCByLDj6VIU0BxT8P35KVaweSWWevtPdztucYeT8vOZrqUZvu vREdjHLeFeSI+o82TFdXP6KzFtZ4uTlhfZM9VnMrqM6jd255V5TSSUXreMA0bmIlSBjtwb Xx/uajtjMz7OhHXTBGiesjupJU/MN9w0PxjlAQnqFbah+4cK9dqfreZCyEAKBFu8Z/QKrm FikOlSixBfkNmdC3jMSydnJctpUcYqUqLfrPNMgsYuDZh0itIt61IzpTeIELqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=T61PnS4H; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=T61PnS4H; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: C181C11FB5 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: cdp2ran2Hd6X Hi! Vagrant Cascadian writes: > On 2021-10-02, Ludovic Court=C3=A8s wrote: >> Here comes =E2=80=98guix shell=E2=80=99, a proposed replacement for =E2= =80=98guix environment=E2=80=99! > > Yay! > >> =E2=80=98guix environment=E2=80=99 would stay around though, at least fo= r some time, >> probably for a long time. >> >> The differences to =E2=80=98guix environment=E2=80=99 are: > ... >> 2. =E2=80=98guix shell=E2=80=99, without arguments, loads =E2=80=98gui= x.scm=E2=80=99 or =E2=80=98manifest.scm=E2=80=99 >> from the current directory or one of its ancestors. > > This sounds a little scary to me, just implicitly importing whatever > happens to be lying around doesn't sound very guixy... > [...] What about doing something like what direnv[fn:1] does? Quoting the website: "direnv checks for the existence of a .envrc file in the current and parent directories. If the file exists (and is authorized), it is loaded into a bash sub-shell and all exported variables are then captured by direnv and then made available to the current shell." The difference between direnv and the current approach is that if the file has never been "authorized", before it being imported you need to run a command (direnv allow) to authorize it. There's the ~/.config/direnv/allow dir which stores files named with the hash of the content of the config, and whose content is just the path of the file (don't know why this is needed). This allows for automatic environment ({manifest,guix}.scm) file selection AND a it's a bit more secure (it won't run arbitrary code residing anywhere in the directory structure). Except for this, I'd love to see guix shell merged, it will be a major improvement over guix environment for my use cases. Thanks! Nicol=C3=B2 [fn:1] direnv.net