GNU bug report logs - #73294
"guix shell -- anything" does not look for manifests

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: lgcoelho@HIDDEN; dated Mon, 16 Sep 2024 12:42:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 73294 <at> debbugs.gnu.org:


Received: (at 73294) by debbugs.gnu.org; 30 Sep 2024 21:05:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 30 17:05:10 2024
Received: from localhost ([127.0.0.1]:47134 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1svNZu-0006cn-25
	for submit <at> debbugs.gnu.org; Mon, 30 Sep 2024 17:05:10 -0400
Received: from eggs.gnu.org ([209.51.188.92]:59064)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1svNZq-0006bo-VR
 for 73294 <at> debbugs.gnu.org; Mon, 30 Sep 2024 17:05:07 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1svNZD-0003rq-7h; Mon, 30 Sep 2024 17:04:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=ym7Jqtl7e8JiIB3rW7q3tUZPk9f+vWj36m/URSNz5UA=; b=JaZIxPI5IC+vCrx7w9WQ
 mMxE9hr5MWMKO1E2C7ctSK+HoFcxni8W01kWnBX83lRemkBVlvSLx37V4tQBmcLutXptZp1HhRguq
 mn0ik2x4c98AcghZJd12TTvF1AUtISMw26pn77NKh6PyTod45YlowP2GNjhSg2MCSBe/9egrpZYao
 92aFpmf+2PYlXMffBods1kWEyDeWG01XlHooa/kYjVWZyi++bHuGoUHyUcLEYclpZEDNZfKNscwTM
 bKwAAL6NibKgLCEP83dsQq5XGOomcFVlbH4Odhr0hhClkC9k78d65cqwPfOV+vcn6Tzt94ajyL0gj
 gTzTvKDmr/hoBQ==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: lgcoelho@HIDDEN
Subject: Re: bug#73294: "guix shell -- anything" does not look for manifests
In-Reply-To: <86b8b6bd0f2a04c6febb78b5c91f7676@HIDDEN>
 (lgcoelho@HIDDEN's message of "Mon, 16 Sep 2024 14:40:23 +0200")
References: <86b8b6bd0f2a04c6febb78b5c91f7676@HIDDEN>
Date: Mon, 30 Sep 2024 23:04:23 +0200
Message-ID: <875xqc4zvs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73294
Cc: 73294 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

lgcoelho@HIDDEN skribis:

> Currently, if you have an authorized manifest available and want to run=20
> some command (for example htop) provided by the manifest, you need to
>
>
> $ guix shell
> $ htop
>
> as supplying a command for guix shell makes it to not look for=20
> manifests, and instead simply create a empty environment.
>
>
> $ guix shell -- htop
> guix shell: warning: no packages specified; creating an empty=20
> environment
> guix shell: error: htop: command not found
>
> Which doesn't seems a desirable behavior to me. Could we fix it?

This is the documented behavior: =E2=80=98manifest.scm=E2=80=99 and =E2=80=
=98guix.scm=E2=80=99 are read
only for interactive use, meaning without =E2=80=98--=E2=80=99:

  https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-shell.html

The rationale for it is that non-interactive uses of =E2=80=98guix shell=E2=
=80=99 would
always be self-contained.

This was arguably a very conservative choice but I=E2=80=99m not sure we can
change it at this stage.  Thoughts?

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#73294; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Sep 2024 12:41:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 16 08:41:17 2024
Received: from localhost ([127.0.0.1]:51261 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sqB2b-0005We-91
	for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 08:41:17 -0400
Received: from lists.gnu.org ([209.51.188.17]:38882)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lgcoelho@HIDDEN>) id 1sqB2Y-0005WV-Nd
 for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 08:41:15 -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 <lgcoelho@HIDDEN>)
 id 1sqB2J-00082P-50
 for bug-guix@HIDDEN; Mon, 16 Sep 2024 08:40:59 -0400
Received: from layka.disroot.org ([178.21.23.139])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <lgcoelho@HIDDEN>)
 id 1sqB1z-0002ve-FK
 for bug-guix@HIDDEN; Mon, 16 Sep 2024 08:40:56 -0400
Received: from mail01.disroot.lan (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id F247223CC8
 for <bug-guix@HIDDEN>; Mon, 16 Sep 2024 14:40:23 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from layka.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP
 id XVEOSACdds07 for <bug-guix@HIDDEN>;
 Mon, 16 Sep 2024 14:40:23 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1726490423; bh=JzpNvZBcr6r9+y8fwFSSXKwv88PaiNMfjn71gy9N0iQ=;
 h=Date:From:To:Subject;
 b=bXwNAQ9xN6U1c0M4h2dhk2dxwlBYF0eQ6phQdnJ818+YW45yvYfW0gEMgGbgkwPxz
 cWrrkVj6k1AR+qm8shLCuZef9Obce+0z5TioSAghuKPx7iixQWCeplDLnw0/nc9TQk
 +4W8zA98TjOZaWfmTj15WCL5fvQMgIZwUqk1c/j86NcgZXLB15KBExNOztZGbOjrIs
 pc1niUnNmF5Y9BHOfg77SCbvvPIh5r7m9HykAJQq5z7G+yLSy/JOoBTxVsHCTR+u+j
 ARuXJ6Y/lgSY5QTj83agBODpSOQrB8gcr4Qrr1KTbBkr0GetXQ3yNhK6CKXLnSBIYq
 7OJk44PyNwZCw==
MIME-Version: 1.0
Date: Mon, 16 Sep 2024 14:40:23 +0200
From: lgcoelho@HIDDEN
To: bug-guix@HIDDEN
Subject: "guix shell -- anything" does not look for manifests
Message-ID: <86b8b6bd0f2a04c6febb78b5c91f7676@HIDDEN>
X-Sender: lgcoelho@HIDDEN
Content-Type: multipart/alternative;
 boundary="=_4d2d99b8ca3671f55a785f845fa24282"
Received-SPF: pass client-ip=178.21.23.139; envelope-from=lgcoelho@HIDDEN;
 helo=layka.disroot.org
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, HTML_MESSAGE=0.001,
 SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--=_4d2d99b8ca3671f55a785f845fa24282
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII;
 format=flowed

Hello,

Currently, if you have an authorized manifest available and want to run 
some command (for example htop) provided by the manifest, you need to

--8<---------------cut here---------------start------------->8---

$ guix shell
$ htop

--8<---------------cut here---------------end--------------->8---
as supplying a command for guix shell makes it to not look for 
manifests, and instead simply create a empty environment.

--8<---------------cut here---------------start------------->8---

$ guix shell -- htop
guix shell: warning: no packages specified; creating an empty 
environment
guix shell: error: htop: command not found

--8<---------------cut here---------------end--------------->8---

Which doesn't seems a desirable behavior to me. Could we fix it?

Thanks in advance,
Luis
--=_4d2d99b8ca3671f55a785f845fa24282
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<pre style=3D"color: #000000;" data-darkreader-inline-color=3D"">Hello,
<br />Currently, if you have an authorized manifest available and want to r=
un some command (for example htop) provided by the manifest, you need to</p=
re>
<pre style=3D"color: #000000;" data-darkreader-inline-color=3D"">--8&lt;---=
------------cut here---------------start-------------&gt;8---<br />
$ guix shell<br />$ htop<br /><br />--8&lt;---------------cut here---------=
------end---------------&gt;8---<br />as supplying a command for guix shell=
 makes it to not look for manifests, and instead simply create a empty envi=
ronment.<br /><br /></pre>
<pre style=3D"color: #000000;" data-darkreader-inline-color=3D"">--8&lt;---=
------------cut here---------------start-------------&gt;8---
<br />$ guix shell -- htop<br />guix shell: warning: no packages specified;=
 creating an empty environment<br />guix shell: error: htop: command not fo=
und<br /><br /></pre>
<pre style=3D"color: #000000;" data-darkreader-inline-color=3D"">--8&lt;---=
------------cut here---------------end---------------&gt;8---<br /><br />Wh=
ich doesn't seems a desirable behavior to me. Could we fix it?</pre>
<pre style=3D"color: #000000;" data-darkreader-inline-color=3D"">Thanks in =
advance,<br />Luis</pre>
</body></html>

--=_4d2d99b8ca3671f55a785f845fa24282--




Acknowledgement sent to lgcoelho@HIDDEN:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#73294; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.