Misleading error message when call guix command using pre-inst-env script

  • Done
  • quality assurance status badge
Details
3 participants
  • Jérémy Korwin-Zmijowski
  • Ludovic Courtès
  • zimoun
Owner
unassigned
Submitted by
Jérémy Korwin-Zmijowski
Severity
normal
J
J
Jérémy Korwin-Zmijowski wrote on 22 May 2020 16:59
(address . bug-guix@gnu.org)
eede41df0c877faa186ea80188aa4054e96e2a9b.camel@korwin-zmijowski.fr
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 :

$ 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
L
L
Ludovic Courtès wrote on 23 May 2020 17:46
(name . Jérémy Korwin-Zmijowski)(address . jeremy@korwin-zmijowski.fr)(address . 41458@debbugs.gnu.org)
87367q64e9.fsf@gnu.org
Hi,

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

Toggle quote (12 lines)
> 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’.
Z
Z
zimoun wrote on 25 May 2020 19:31
(name . Ludovic Courtès)(address . ludo@gnu.org)
CAJ3okZ3FZiyroNePNP9ZnYRp=KupzEEkqhYye1ECH8WDwcd07g@mail.gmail.com
Hi,

On Sat, 23 May 2020 at 17:47, Ludovic Courtès <ludo@gnu.org> wrote:
Toggle quote (7 lines)
> Jérémy Korwin-Zmijowski <jeremy@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:

Toggle quote (3 lines)
> > exit
> > $ ./pre-inst-env guix build artanis

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

Toggle snippet (6 lines)
[dev]$ ./pre-inst-env guix pull --url=$PWD -p /path/to/your/custom
[dev]$ exit
$ /path/to/your/custom/bin/guix build artanis


Toggle quote (5 lines)
> 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
J
J
Jérémy Korwin-Zmijowski wrote on 31 May 2020 20:50
(address . 41458@debbugs.gnu.org)
8C3A4E4F-2F2D-439C-859F-C5FF1B13457B@korwin-zmijowski.fr
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@gmail.com> a écrit :
Toggle quote (37 lines)
>Hi,
>
>On Sat, 23 May 2020 at 17:47, Ludovic Courtès <ludo@gnu.org> wrote:
>> Jérémy Korwin-Zmijowski <jeremy@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é.
Attachment: file
Z
Z
zimoun wrote on 7 Oct 2020 18:13
tags 41458 wontfix and close
(address . control@debbugs.gnu.org)
87a6wy815h.fsf@gmail.com
tags 41458 notabug
close 41458
thanks
?
Your comment

This issue is archived.

To comment on this conversation send an email to 41458@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 41458
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch