GNU bug report logs - #41458
Misleading error message when call guix command using pre-inst-env script

Previous Next

Package: guix;

Reported by: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>

Date: Fri, 22 May 2020 15:00:02 UTC

Severity: normal

Tags: notabug

Done: zimoun <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41458 in the body.
You can then email your comments to 41458 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41458; Package guix. (Fri, 22 May 2020 15:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 22 May 2020 15:00:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
To: bug-guix <at> gnu.org
Subject: Misleading error message when call guix command using pre-inst-env
 script
Date: Fri, 22 May 2020 16:59:05 +0200
Dear Guixters,

According to Rekado, the error message, I get when using pre-inst-env
script, is irrevelant.

I quote :
« the lack of an appropriate error message is not good. […] The error
message should say what things are missing instead of printing a
misleading error message about the package. »

Here is my command line history :

   $ git clone https://git.savannah.gnu.org/git/guix.git
$ cd guix
$ guix environment --pure guix
[dev]$ ./bootstrap && ./configure --localstatedir=/var && make &&
exit
…
$ ./pre-inst-env guix build artanis
guix: build: command not found
Try `guix --help' for more information.

For what it worth, I run Guix on Ubuntu 20.04.

Cheers,

Jérémy





Information forwarded to bug-guix <at> gnu.org:
bug#41458; Package guix. (Sat, 23 May 2020 15:47:02 GMT) Full text and rfc822 format available.

Message #8 received at 41458 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
Cc: 41458 <at> debbugs.gnu.org
Subject: Re: bug#41458: Misleading error message when call guix command using
 pre-inst-env script
Date: Sat, 23 May 2020 17:46:06 +0200
Hi,

Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr> skribis:

> Here is my command line history :
>
>    $ git clone https://git.savannah.gnu.org/git/guix.git
> $ cd guix
> $ guix environment --pure guix
> [dev]$ ./bootstrap && ./configure --localstatedir=/var && make &&
> exit
> …
> $ ./pre-inst-env guix build artanis
> guix: build: command not found
> Try `guix --help' for more information.

What probably happens here is that some of the required dependencies
provided in $GUILE_LOAD_PATH by ‘guix environment’ are not available
outside the environment.  As a result, loading the (guix scripts build)
module and its dependencies fail, which the machinery interprets as “no
such command”.

This is a development environment issue that cannot happen when using a
‘guix pull’-provided ‘guix’ command.  I would close it as “wontfix”
since, after all, it’s just one of the many ways one can end up with a
non-functional development environment.

WDYT?

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#41458; Package guix. (Mon, 25 May 2020 17:32:02 GMT) Full text and rfc822 format available.

Message #11 received at 41458 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Jérémy Korwin-Zmijowski
 <jeremy <at> korwin-zmijowski.fr>, 41458 <at> debbugs.gnu.org
Subject: Re: bug#41458: Misleading error message when call guix command using
 pre-inst-env script
Date: Mon, 25 May 2020 19:31:14 +0200
Hi,

On Sat, 23 May 2020 at 17:47, Ludovic Courtès <ludo <at> gnu.org> wrote:
> Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr> skribis:

> >    $ git clone https://git.savannah.gnu.org/git/guix.git
> > $ cd guix
> > $ guix environment --pure guix
> > [dev]$ ./bootstrap && ./configure --localstatedir=/var && make

Hum? instead of these:

> > exit
> > $ ./pre-inst-env guix build artanis

what you (Jérémy) would want seems:

--8<---------------cut here---------------start------------->8---
[dev]$ ./pre-inst-env guix pull --url=$PWD -p /path/to/your/custom
[dev]$ exit
$ /path/to/your/custom/bin/guix build artanis
--8<---------------cut here---------------end--------------->8---


> This is a development environment issue that cannot happen when using a
> ‘guix pull’-provided ‘guix’ command.  I would close it as “wontfix”
> since, after all, it’s just one of the many ways one can end up with a
> non-functional development environment.

Even, I would close it as 'notabug'. ;-)


Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#41458; Package guix. (Sun, 31 May 2020 18:51:01 GMT) Full text and rfc822 format available.

Message #14 received at 41458 <at> debbugs.gnu.org (full text, mbox):

From: Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
To: zimoun <zimon.toutoune <at> gmail.com>,
 Ludovic Courtès <ludo <at> gnu.org>
Cc: 41458 <at> debbugs.gnu.org
Subject: Re: bug#41458: Misleading error message when call guix command using
 pre-inst-env script
Date: Sun, 31 May 2020 20:50:46 +0200
[Message part 1 (text/plain, inline)]
I have no opinion, and nothing new to bring in the conversation. So let's do what fit the best to you.

Thank you for your advices.

Cheers,

Jérémy

Le 25 mai 2020 19:31:14 GMT+02:00, zimoun <zimon.toutoune <at> gmail.com> a écrit :
>Hi,
>
>On Sat, 23 May 2020 at 17:47, Ludovic Courtès <ludo <at> gnu.org> wrote:
>> Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr> skribis:
>
>> >    $ git clone https://git.savannah.gnu.org/git/guix.git
>> > $ cd guix
>> > $ guix environment --pure guix
>> > [dev]$ ./bootstrap && ./configure --localstatedir=/var && make
>
>Hum? instead of these:
>
>> > exit
>> > $ ./pre-inst-env guix build artanis
>
>what you (Jérémy) would want seems:
>
>--8<---------------cut here---------------start------------->8---
>[dev]$ ./pre-inst-env guix pull --url=$PWD -p /path/to/your/custom
>[dev]$ exit
>$ /path/to/your/custom/bin/guix build artanis
>--8<---------------cut here---------------end--------------->8---
>
>
>> This is a development environment issue that cannot happen when using
>a
>> ‘guix pull’-provided ‘guix’ command.  I would close it as “wontfix”
>> since, after all, it’s just one of the many ways one can end up with
>a
>> non-functional development environment.
>
>Even, I would close it as 'notabug'. ;-)
>
>
>Cheers,
>simon

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from zimoun <zimon.toutoune <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 07 Oct 2020 16:14:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 41458 <at> debbugs.gnu.org and Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr> Request was from zimoun <zimon.toutoune <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 07 Oct 2020 16:14:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Nov 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 283 days ago.

Previous Next


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