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 4 days ago
(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 3 days ago
(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 14 hours ago
(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
?