unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#41458: Misleading error message when call guix command using pre-inst-env script
@ 2020-05-22 14:59 Jérémy Korwin-Zmijowski
  2020-05-23 15:46 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2020-05-22 14:59 UTC (permalink / raw)
  To: 41458

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41458: Misleading error message when call guix command using pre-inst-env script
  2020-05-22 14:59 bug#41458: Misleading error message when call guix command using pre-inst-env script Jérémy Korwin-Zmijowski
@ 2020-05-23 15:46 ` Ludovic Courtès
  2020-05-25 17:31   ` zimoun
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2020-05-23 15:46 UTC (permalink / raw)
  To: Jérémy Korwin-Zmijowski; +Cc: 41458

Hi,

Jérémy Korwin-Zmijowski <jeremy@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’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41458: Misleading error message when call guix command using pre-inst-env script
  2020-05-23 15:46 ` Ludovic Courtès
@ 2020-05-25 17:31   ` zimoun
  2020-05-31 18:50     ` Jérémy Korwin-Zmijowski
  0 siblings, 1 reply; 4+ messages in thread
From: zimoun @ 2020-05-25 17:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Jérémy Korwin-Zmijowski, 41458

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41458: Misleading error message when call guix command using pre-inst-env script
  2020-05-25 17:31   ` zimoun
@ 2020-05-31 18:50     ` Jérémy Korwin-Zmijowski
  0 siblings, 0 replies; 4+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2020-05-31 18:50 UTC (permalink / raw)
  To: zimoun, Ludovic Courtès; +Cc: 41458

[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

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 :
>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 #2: Type: text/html, Size: 2571 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-31 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22 14:59 bug#41458: Misleading error message when call guix command using pre-inst-env script Jérémy Korwin-Zmijowski
2020-05-23 15:46 ` Ludovic Courtès
2020-05-25 17:31   ` zimoun
2020-05-31 18:50     ` Jérémy Korwin-Zmijowski

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).