From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mDtIL2iCYGStcgAASxT56A (envelope-from ) for ; Sun, 14 May 2023 08:40:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4AY6L2iCYGSRFgEAauVa8A (envelope-from ) for ; Sun, 14 May 2023 08:40:40 +0200 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 8A7C63E2B for ; Sun, 14 May 2023 08:40:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1py588-0002jr-I7; Sun, 14 May 2023 02:22:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxTae-0004rf-2X for help-guix@gnu.org; Fri, 12 May 2023 10:17:48 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxTac-0007HL-2g for help-guix@gnu.org; Fri, 12 May 2023 10:17:47 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1aad5245632so72170135ad.3 for ; Fri, 12 May 2023 07:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683901063; x=1686493063; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YfjqGUFQ3ym0vUY/mIwsK+UvQArekmuoqbqXd4eQfkU=; b=D9gwD5CY5YBaJjzpk2HqtFkNleydNK2sKsFMIEhq9bh3FuRr+zVgQyNPB/AvyWpRJT +h1D/NJhieY7QZKONPWpLHkEJHemb+/n93F/lfs6PCdKaQQKlomwrttvjmzTTzVG6muA dZnAEI/EA2oD1R0kxHx6cnBHvRhlVpSvMMkgCKNy9BIFwPMJ7lizlp7rKTQXyp53X2y5 j4V7M/d2YwFbkxqOSpOdfDRXhV7qFgKf0Smffu65uxCIqdP8zcvvzMZOpIb4Hh0HJlBc yRFZajvd9HynQIcuqNrVIuRk5OAVXEPPAtUzYV7ulyU/Wx7X6JE6eYSHNhyyw3J2sfPp 9mRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683901063; x=1686493063; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YfjqGUFQ3ym0vUY/mIwsK+UvQArekmuoqbqXd4eQfkU=; b=dg9jiTxIeTZXnnR7+SjDgDWqL0vuIgrGOrZPqqR0+t3ZOqKtD9cxuV3sTGdu8HFe1R 00RDPyrWlYI4xS26UoylrH2rSqC/YbDMr02kJGN6D7LIGZqvWEiOPBTs181ttmd331F2 bD89ptuIGmpTHW4Xhl4q8RAhIS9ShoIUOy2MFpjlRqaIXbmFWmOaRuvjSAvih+fFPPYw U0zL+gxdaJ1a0vj4OcTQNLZr/Fhmq/sN4sgxaH35cCizzGwdleDIK0CnJcCn0R3Bf9yo DYOJUHzm7OaTgXqw3F7ds5eNt6lJSDmhFuSYqFAxFgvniVPSKkoWu8A2/1dJTc2nkZ6X vH9g== X-Gm-Message-State: AC+VfDx6bM4iC1FzIXUYc9AE8W26HqaXfhgJMqHf8KkfqeGUxy3MPkT6 iRb0nvPI7BOuyvomW95SLPYV55D7lqSKU0WbizbYdsKaDxWHnw== X-Google-Smtp-Source: ACHHUZ5PVoFtmj6s1LdLXQRDwBPejXGG/NbOpRBiV9k9R/WirvDXsZu4cEgAHj/k+qXh28IBlc8qNpBUgq6+WnDslR4= X-Received: by 2002:a17:902:dac7:b0:1ac:874d:f55e with SMTP id q7-20020a170902dac700b001ac874df55emr19400090plx.22.1683901062952; Fri, 12 May 2023 07:17:42 -0700 (PDT) MIME-Version: 1.0 References: <871qjlizan.fsf@gmail.com> In-Reply-To: From: Hafeez Bana Date: Fri, 12 May 2023 15:17:30 +0100 Message-ID: Subject: Re: guix shell without arguments To: "Thompson, David" Cc: =?UTF-8?B?QW5kcsOpIEEuIEdvbWVz?= , help-guix Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=hafeez.bana@gmail.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 14 May 2023 02:22:51 -0400 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684046440; a=rsa-sha256; cv=none; b=XNbCkcTIvoZsLLqmwgNmJSphZc6ccV5F/RTpk420AJz/hjwBcVkDMYCF9e5Pip7yKI084y ifCuMiLR9ivSi7eWPfO4yjO0QNX5QmqVWSA2M0zlXIiASgTdgcitdAaWnCTY2PSGFRyKu2 Cfm4YrBx+7jD7awgqoTgJlD/x9G6hM0bRFudmzkHe0LxUXuuFi3AYpAs+v8Pugl2BKDULD kdjaLGvsDgGLOdip7QXX50PuU6qBXIFXP2tew85POIjZUAk/fo4RTU+/Rgzme76W2biVB5 td3B5kAEmA33vL4ToaSSyqPT4Ud0vnMvIVRDJaFNW7KpaR+vyV2QjNt1rXm/uQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=D9gwD5CY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684046440; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=eDgtjtxVWAx19eS/O7SpGPOrXGpSEqh5Odxl+bhXNEs=; b=jLzlSFIAZeM4adXJlwq8Z2/lStg0+eNdspTt2hfYqjneWxiYdhxsv0bJE5+ncLxyE1cKlv oAhDdBl8X8nysJCCDDRKKlt+UuMoqqYmzM+vVTP2AqV+tDemg2QfyLKHLWvuy8E5kKFJxw CLycNXUtiVRBE0f/2DtdPbh2SPHISNatvUV6HbBPvVbdIf1OBe7zfkeTwVHi22/1fbTYHf 1xLIrWbxv4LPdr46pdtcmF6FfxffIosOvzzoLXA1+m9RDoxZCA1fMmA8TzKi+vAgGp91ep EV0wTUqB3In47x/Kg9UBudaIPpSm1V3T3BSxqSDl+Us6ThXtX97uyKy0/Gyvfg== X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=D9gwD5CY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Spam: Yes X-Migadu-Spam-Score: 8.52 X-Spam-Score: 8.52 X-Migadu-Queue-Id: 8A7C63E2B X-TUID: kPD+gV9YRzFi Side question. How do people run poostgresql run right that=E2=80=99s been installed via guix? Asking because I am packaging freeswitch and freeswitch the install (in gnu store) is different from freeswitch the process which needs a working config and log directory. My plan is to create a seperate ops folder and start the process via shepherd. But wondering if I am doing something custom when people have thought this through before me? On Fri, 12 May 2023 at 14:10, Thompson, David wrote: > Hi Andre, > > On Fri, May 12, 2023 at 7:07=E2=80=AFAM Andr=C3=A9 A. Gomes > wrote: > > > > Hello Guix, > > > > Issuing guix shell without arguments is equivalent to the command below= , > > when guix.scm exists in the directory where it's being issued: > > > > --8<---------------cut here---------------start------------->8--- > > guix shell -D -f /path/to/guix.scm > > --8<---------------cut here---------------end--------------->8--- > > > > I am wondering if there's a more succinct way of saying: > > > > --8<---------------cut here---------------start------------->8--- > > guix shell -D -f /path/to/guix.scm -- foo-command > > --8<---------------cut here---------------end--------------->8--- > > > > The incantation below creates an empty environment. But wouldn't it be > > nice if it would infer manifest.scm or guix.scm, in case they exist in > > the current directory? > > > > --8<---------------cut here---------------start------------->8--- > > guix shell -- foo-command > > --8<---------------cut here---------------end--------------->8--- > > I agree with you! It's a big usability issue! Even though I'm aware of > this behavior, I still catch myself trying to do `guix shell -- > foo-command` from time to time and being disappointed. I filed an > issue about this awhile back and the tl;dr is that the behavior can't > be changed (at least not easily) without breaking things for users who > have different expectations/needs: https://issues.guix.gnu.org/57467 > > There seem to be two main use cases that are sort of at odds with each > other: > > 1) Users who invoke 'guix shell' in their terminal and want "do what I > mean" implicit behavior (I'm in this group and suspect you are, too) > 2) Users who invoke 'guix shell' in scripts and want all behavior to > be explicit using flags so that the scripts behave in a reliable way > > 'guix shell' is primarily focused on case 2, and case 1 is only > supported when 'guix shell' has no other args, as you've noticed. > Perhaps this is an indicator that we need two different tools. I've > thought for years that we need a 'guix develop' (working title) tool > that does what 'guix shell' does but also goes beyond by starting > containerized services like 'docker compose' can. For example, if a > project requires a PostgreSQL database, 'guix develop' could create a > shell environment with the client program/library but also > automatically start the server using an instance of Shepherd and > 'herd' inside the shell could be used to control the service. > > - Dave > >