From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SJVLMfUDXGG82wAAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 09:51:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UD8CLfUDXGHgYAAAB5/wlQ (envelope-from ) for ; Tue, 05 Oct 2021 07:51:17 +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 7462312548 for ; Tue, 5 Oct 2021 09:51:17 +0200 (CEST) Received: from localhost ([::1]:56652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXfEK-0001bI-Jt for larch@yhetil.org; Tue, 05 Oct 2021 03:51:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXfE5-0001Ww-W3 for guix-patches@gnu.org; Tue, 05 Oct 2021 03:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXfE5-0005ov-OU for guix-patches@gnu.org; Tue, 05 Oct 2021 03:51:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXfE5-000748-NA for guix-patches@gnu.org; Tue, 05 Oct 2021 03:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment' Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Oct 2021 07:51: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Liliana Marie Prikler Cc: 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163342020727087 (code B ref 50960); Tue, 05 Oct 2021 07:51:01 +0000 Received: (at 50960) by debbugs.gnu.org; 5 Oct 2021 07:50:07 +0000 Received: from localhost ([127.0.0.1]:38953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXfDD-00072p-5S for submit@debbugs.gnu.org; Tue, 05 Oct 2021 03:50:07 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:59472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXfDB-00072c-EK for 50960@debbugs.gnu.org; Tue, 05 Oct 2021 03:50:05 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by albert.telenet-ops.be with bizsmtp id 27q32600C0mfAB4067q3uh; Tue, 05 Oct 2021 09:50:04 +0200 Message-ID: <51388f2a0e841af6f1b4441d3dc34e38996e7209.camel@telenet.be> From: Maxime Devos Date: Tue, 05 Oct 2021 09:50:02 +0200 In-Reply-To: <87mtnrzgn9.fsf_-_@gnu.org> References: <20211002102240.27815-1-ludo@gnu.org> <20211002102240.27815-4-ludo@gnu.org> <1c5d7a3d62da1b495a14b850a1b56b2a410b2405.camel@gmail.com> <87mtnrzgn9.fsf_-_@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-kQgGfdbEBaVeygvo4ho3" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1633420204; bh=QMTN73+PIbSyYbr8UlJcdeLIpktcULvajZBHoPAKeJk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=MGEKTDgdsbWb168EUQL7kbxJe4ZVSzd1Xz8BCxKykEB9Z2gvt4mzuJeAjyxtZBlFb IBCCgGnDBn7oFd9yrfKQE9lA1uwi/AqGKSxzHxw9Qw3KavHvSAaNwNbNeKKW1yIxfs kpxR0o5ZDEWLCJHM6YuxNAObK6r9K/Kzasrg8cjeeoUocQVEymGhVnqFbnWguyeQMr MIg4kM2n4h8h1omLUuS3hF3YdOPRmd2idkSl0IiydKESvAdsQzylNwtwlCYP2EHrkU cbAo1sxzCTcNtMR6wGyoWQz1BgVw5MHoujw733/KDAHLQ9IU6VUR3LehMmMZnvnT0h p7UXxtxQYpe8g== 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=1633420277; 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: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=QMTN73+PIbSyYbr8UlJcdeLIpktcULvajZBHoPAKeJk=; b=cdwbUUmNXgl3zxICgpi6mKfksbKaJUeqpANLeVOlRbhdLbeEfvO6by/uuYWMI+UpMtP42r vrOhrlnHWKkH+mzxmkuK0bzFfhT0qexHm8cZj8EciwdlFPjS1sPLKbhfuZpTcvkYV+aRya +jEUPFqjtEFQFEZ3G84WZOk9vzLm8iFbf8RZjrL1yG+nQoo87o3tZsW2kSh+aLgNO3wkSU CUgsTXaYitV0EbQutYa75oaCs67BqnBLc/Mi3GR4vxxYxymynCo1YNHogvhnI+rAseh66V 014XeCYL/1Scu5gBeuYUVgPetq0gvcg1fex2QvHcGt8ztcL4umpCs7nxgQYanw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633420277; a=rsa-sha256; cv=none; b=tD/f4cYz4qVadCFXzM2oKhoRLRIwM5Z3iqkM9LdgJLbo+nL+bqOCyr4/XP8EWMBonURrK8 rEUVnjIMMbq/z2s+khtf3rtz9UxXa4e+jldhPUb5Ry3AiVifiXGiPUGs9hx4UeMdwmUr+A GGTvRG+6uiGjGNHL6XXuRR6BPwMUKqF0hZ/HqIkZZVRpoc4fxXn/2WTcYfadbG7WBl0+N5 D8S+FlsPWMdD81Da+tWjRQVZt03gkc9JOTUHVchMpQklCRbvDXiZGOxCnXCRXhtsICqqIr XXmOuWqKqzD9s3is4GnXzQVPx7GqeWe4PGDc4p3L3LW4yJ43N8yvFDB41yUqLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=MGEKTDgd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: -3.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=MGEKTDgd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: 7462312548 X-Spam-Score: -3.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: jE3oPTsWyUAm --=-kQgGfdbEBaVeygvo4ho3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op za 02-10-2021 om 15:43 [+0200]: > Hi, >=20 > Liliana Marie Prikler skribis: >=20 > > Am Samstag, den 02.10.2021, 12:22 +0200 schrieb Ludovic Court=C3=A8s: > > > [...] > > > +(define (auto-detect-manifest opts) > > > + "If OPTS do not specify packages or a manifest, load a > > > \"guix.scm\" or > > > +\"manifest.scm\" file from the current directory or one of its > > > ancestors. > > > +Return the modified OPTS." > > > + (define (options-contain-payload? opts) > > > + (match opts > > > + (() #f) > > > + ((('package . _) . _) #t) > > > + ((('load . _) . _) #t) > > > + ((('manifest . _) . _) #t) > > > + ((('expression . _) . _) #t) > > > + ((_ . rest) (options-contain-payload? rest)))) > > > + > > > + (if (options-contain-payload? opts) > > > + opts > > > + (match (find-file-in-parent-directories '("guix.scm" > > > "manifest.scm")) > > > + (#f > > > + (warning (G_ "no packages specified; creating an empty > > > environment~%")) > > > + opts) > > > + (file > > > + (info (G_ "loading environment from '~a'...~%") file) > > > + (match (basename file) > > > + ("guix.scm" > > > + (alist-cons 'load `(package ,file) opts)) > > > + ("manifest.scm" > > > + (alist-cons 'manifest file opts))))))) > > > [...] > > What would happen on the top-level of the Guix source tree or deep > > inside the tree of a guile package that deals with manifests, that > > aren't necessarily related to Guix? >=20 > You mean a directory that contains a file named =E2=80=98guix.scm=E2=80= =99 or > =E2=80=98manifest.scm=E2=80=99 but that happens to do something completel= y unrelated? >=20 > We can never rule this out, but I=E2=80=99d say it=E2=80=99s unlikely (th= ese two > conventions are rather well established) and it=E2=80=99s up to the user = to pay > attention. >=20 > WDYT? Guix itself doesn't follow this convention: the guix source tree has an unr= elated "guix.scm" file, that doesn't evaluate to a package. I'd expect that runni= ng "guix shell" within the guix source tree would be equivalent to "guix environment guix", but currently this doesn't seem to be the case. Greetings, Maxime. --=-kQgGfdbEBaVeygvo4ho3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYVwDqxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ka0AQDnU7a+eWbslkX7fyYYmApXdwox f30IDVhPdf7QlCRmiQEA/ISOlBj627fvuxi78KBfTj9oA+4xX5WqI6+fcRHVQgU= =8DCn -----END PGP SIGNATURE----- --=-kQgGfdbEBaVeygvo4ho3--