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

OpenSubmitted by Jérémy Korwin-Zmijowski.
Details
3 participants
  • Jérémy Korwin-Zmijowski
  • Ludovic Courtès
  • zimoun
Owner
unassigned
Severity
normal
J
J
Jérémy Korwin-Zmijowski wrote on 22 May 16:59 +0200
(address . bug-guix@gnu.org)
eede41df0c877faa186ea80188aa4054e96e2a9b.camel@korwin-zmijowski.fr
Dear Guixters,
According to Rekado, the error message, I get when using pre-inst-envscript, is irrevelant.
I quote :« the lack of an appropriate error message is not good. […] The errormessage should say what things are missing instead of printing amisleading 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 artanisguix: build: command not foundTry `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 17:46 +0200
(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 dependenciesprovided in $GUILE_LOAD_PATH by ‘guix environment’ are not availableoutside the environment. As a result, loading the (guix scripts build)module and its dependencies fail, which the machinery interprets as “nosuch 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 anon-functional development environment.
WDYT?
Ludo’.
Z
Z
zimoun wrote on 25 May 19:31 +0200
(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 37 hours ago
(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
?