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 mLRcEChIWGGd0QAAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 13:53:12 +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 gNQcDChIWGGtCAAA1q6Kng (envelope-from ) for ; Sat, 02 Oct 2021 11:53:12 +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 BD8362C812 for ; Sat, 2 Oct 2021 13:53:11 +0200 (CEST) Received: from localhost ([::1]:41752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWdZm-00015B-DT for larch@yhetil.org; Sat, 02 Oct 2021 07:53:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWdZe-00014i-Lg for guix-patches@gnu.org; Sat, 02 Oct 2021 07:53:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWdZe-000590-EG for guix-patches@gnu.org; Sat, 02 Oct 2021 07:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWdZe-0008Hk-AI for guix-patches@gnu.org; Sat, 02 Oct 2021 07:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH 04/10] DRAFT shell: By default load the local 'guix.scm' or 'manifest.scm' file. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 02 Oct 2021 11:53: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?= , 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163317553131673 (code B ref 50960); Sat, 02 Oct 2021 11:53:02 +0000 Received: (at 50960) by debbugs.gnu.org; 2 Oct 2021 11:52:11 +0000 Received: from localhost ([127.0.0.1]:58122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWdYp-0008En-6n for submit@debbugs.gnu.org; Sat, 02 Oct 2021 07:52:11 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWdYo-0008EX-Cq for 50960@debbugs.gnu.org; Sat, 02 Oct 2021 07:52:10 -0400 Received: by mail-wm1-f68.google.com with SMTP id j10-20020a1c230a000000b0030d523b6693so2842496wmj.2 for <50960@debbugs.gnu.org>; Sat, 02 Oct 2021 04:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=pKzigFsDS9I7hQNCLaZ1iWxZo+LKwmCTSltRdKXV8lQ=; b=OcnVZ1MFKvNyaaGM0zt10aDl9oQtFjB5SYOaCObSc0YX/hXjvM2TvQINz5U0g8X1hv 5m4oSq+IjTdpuo5kvkloUEszXXTDklUgI7361Ul6xhAvPFu2+ool9FfFzugjMPM1DgFR EsqOYqlDFNzuoHowk+8Ph2juKdY9cIJTnPmRjVEU5duFzMfurRmPz/rRyYi4hZVmSFKz uEzh5ZT87N4gOv3aJ7U6IZse359jxktMx1PBgmOvF/fbGBT2zW9hbFWAdUr3raFB//j0 G7KqrsPjKrLHOFV3Qd0bgFWEkJ698gF3ySyehAB21AVhu8rp4p0FbtShi9VF3UJqaCeM U97Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=pKzigFsDS9I7hQNCLaZ1iWxZo+LKwmCTSltRdKXV8lQ=; b=fcxJA1/65LYQjQ07AJIURy7Mg3DwfBfO31/EDlVN4RsJ8wJ8270re3kmdAKJtd7483 c6iInRTK5AlQSInuJG+xRIp38c5KIfBlKDC//tm2AByeD9HBcTNa28Z7+yB0hM2JgFXM ieeeq3qvRjsCeO8QWlJ/Y6clhGMW+R39E1cYKlsT5iHYQSS0eu28aa9XLYEftncm5XUW kzg1GwQVX3Ns+seKjJ0mPdk1/QLysfNOD3EdfKDKb6M1xQsIpckjEfi1Iszdm6Cj0D7x Fmn/QYcke+dbrY8cklnoWhfD/awngi0VrCugPpo7XZpsOL33SkrEaPYfKwJKcS2HVAlo 8lvQ== X-Gm-Message-State: AOAM531P9HokFyEoDOVjtKwLj9n5PIj5JqwjQOyHOjYcjlgrCko2p+o5 yDx/hLci7ScZ4fVk1oX2/5E= X-Google-Smtp-Source: ABdhPJx6kM8WgJWgTSb0N7o9yYtEtgGZWpY4eeKAQ+aFihc5IeYcG6/leEbGvuGA8OZ9FEmqxclgmg== X-Received: by 2002:a05:600c:154f:: with SMTP id f15mr9351469wmg.92.1633175524475; Sat, 02 Oct 2021 04:52:04 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id p6sm3861736wrj.95.2021.10.02.04.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 04:52:03 -0700 (PDT) Message-ID: <1c5d7a3d62da1b495a14b850a1b56b2a410b2405.camel@gmail.com> From: Liliana Marie Prikler Date: Sat, 02 Oct 2021 13:52:03 +0200 In-Reply-To: <20211002102240.27815-4-ludo@gnu.org> References: <20211002102240.27815-1-ludo@gnu.org> <20211002102240.27815-4-ludo@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1633175591; 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=pKzigFsDS9I7hQNCLaZ1iWxZo+LKwmCTSltRdKXV8lQ=; b=pC1U089BdCU4RYg/sMnfYCRLNviyV01NdT+RF4mRQ+G/6whyAwvIfwDJJmdP0BHhfPDbRD OqTRFZ5eGD9RXfGuH3gP0HLtU4q6stzq+FHkewyrEpqYnA85JneKtZxPRwUJGvc3mtgA6B 6+ovfR2NrYXYmD2iMJh2gz3RFAk/dDRKezHDVwAPUIGRmKBVhr+kz0DvLkUfIL4SLyQ0+A ISgXO/67buYL6GaLGPb5GmyulMopFx4OuamvFOgwyL5vFVAgLhYfQDirUn4HDZO70A+QST t48iOFfmurhi2HD8VFq1RkSqQPxaQ5vhUFY053b8iiPS6UrVgqNNHQ9pq/WmVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633175591; a=rsa-sha256; cv=none; b=WR3D1t/oeJCL+4jBMV2GRy7bXz5pXDxqPt4CRNwbcdX0iA7hFPMlUMBtzYBWrisPOcVGRc CnAM3oF5DyFoC6X2RuadvBqpXisQ9iwCzv50daxUoTmax17ut3fj1Tfe4U4XJ6zvCco5TR /SmmLqluTZr1yZW1rurDX9Xu+Xx9ecQplHcfel+TFyB8kUgffJ7n5CYyuxWtEO0lMPi9Kg /iEaePAAuqmpCU7ZKMNp+L+zV/eVNfK4SrqIWY13o82sPlZmyMmSdusBql4ehTh9k8dFQy fz02OBkHeZJUfKPkzWcnQeGNJYrGx/TiJYu13WjY48r/6XVLvEz7yNko7fn6RQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OcnVZ1MF; 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=OcnVZ1MF; 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: BD8362C812 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: WQYNWWMNkVz8 Hi, Am Samstag, den 02.10.2021, 12:22 +0200 schrieb Ludovic Courtès: > [...] > +(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? I think we should try searching for something less ambiguous first (".guix-shell/manifest" perhaps?) and maybe also provide further options after manifest.scm (e.g. build- aux/guix.scm or etc/guix.scm) WDYT?