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 MIbWCV1iWGHO/gAAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 15:45:01 +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 bbaFBV1iWGFzVQAA1q6Kng (envelope-from ) for ; Sat, 02 Oct 2021 13:45:01 +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 6F5312D608 for ; Sat, 2 Oct 2021 15:45:00 +0200 (CEST) Received: from localhost ([::1]:50586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWfJz-0006bm-Kc for larch@yhetil.org; Sat, 02 Oct 2021 09:44:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWfJ5-0005Yg-8X for guix-patches@gnu.org; Sat, 02 Oct 2021 09:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWfJ4-00006N-1C for guix-patches@gnu.org; Sat, 02 Oct 2021 09:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWfJ3-0002jD-VQ for guix-patches@gnu.org; Sat, 02 Oct 2021 09:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 02 Oct 2021 13:44: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: Liliana Marie Prikler Cc: 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163318221010430 (code B ref 50960); Sat, 02 Oct 2021 13:44:01 +0000 Received: (at 50960) by debbugs.gnu.org; 2 Oct 2021 13:43:30 +0000 Received: from localhost ([127.0.0.1]:58311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWfIY-0002iA-FZ for submit@debbugs.gnu.org; Sat, 02 Oct 2021 09:43:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWfIX-0002hw-NG for 50960@debbugs.gnu.org; Sat, 02 Oct 2021 09:43:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53130) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWfIS-00089E-Gc; Sat, 02 Oct 2021 09:43:24 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36466 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWfIS-0007bI-6v; Sat, 02 Oct 2021 09:43:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211002102240.27815-1-ludo@gnu.org> <20211002102240.27815-4-ludo@gnu.org> <1c5d7a3d62da1b495a14b850a1b56b2a410b2405.camel@gmail.com> Date: Sat, 02 Oct 2021 15:43:22 +0200 In-Reply-To: <1c5d7a3d62da1b495a14b850a1b56b2a410b2405.camel@gmail.com> (Liliana Marie Prikler's message of "Sat, 02 Oct 2021 13:52:03 +0200") Message-ID: <87mtnrzgn9.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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=1633182300; 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; bh=wxOqSdHqUlDb3frzhX0a/7ZYF0tfc/cXe8p0MuPQfzc=; b=X9iqfNzQZZU17pnaI9jEXKUM9EKF5ZegAiwUve5cVwLh73hmiChbJZ03CL9obf3ZVNLxTp Poc6MLDIbNSHkfFUgJinjMO737TxOChZMKTuKLLx/bYxvQd282O1o/3Wy3vhBNKKE9vdvq KXgcC2Z9hHiwbzIsKXOw2QCZu+PDCXJE1C9eDVMHqjPoi4d9c0msTqrg0bZS7xsrvFW7uR //un9GjkyIf8QwZxD1yqHrb4QwlqZ5nmgM22SIHJgmhOaJhXVK0uXnoQ9YF/0Ug233J5Pz LWDG+sancrqGiH7JPwRtyNjwKeXKle05WirpmrwAzsjs6QUVU60U9nWsjdFRMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633182300; a=rsa-sha256; cv=none; b=MSkR648XxzMJDhcIpDMkCD+4Ds8pxRMcybsUAmr8DaW2vk9EMJxbAx9SVkwabEzvu1YdIE VpZOy5Umkxg4A6mL2iFSKPSdtqa+OHBQKcIvef+F3Cgx08WuS2oJPxty78kCuvtnGIl3tI FF3LKnDxmpOb6CN4EmTLBy96s4zZIHUcvnGWvS1sFgq9nhheFRjlgC/0BUvVyH7d79vPaQ s7cYmZIkWMMpHtLlty4qzfDyuJq2JRq3KZrjqzKAZZ8yDO7YhxU8oepbvK24tPYQr9BV0s NGg+KfKgvZ0D/HOvAwonJGcbWN6yrYxVmg7nI86yg3Ik5VVI3lkD5lwTH4A3cQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.90 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 6F5312D608 X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: qj/6/EdoUUzk Hi, Liliana Marie Prikler skribis: > 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? 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 completely = unrelated? We can never rule this out, but I=E2=80=99d say it=E2=80=99s unlikely (thes= e two conventions are rather well established) and it=E2=80=99s up to the user to= pay attention. WDYT? Thanks, Ludo=E2=80=99.