bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35883: guix import hackage: recursive import fails silently on error


From: Robert Vollmert
Subject: bug#35883: guix import hackage: recursive import fails silently on errors
Date: Fri, 24 May 2019 15:59:07 +0200

$ guix import hackage not-a-package
guix import: error: failed to download cabal file for package 'not-a-package’
$ echo $?
1
$ guix import hackage -r not-a-package
$ echo $?
0

It might be argued that the error code is fine, since in general it could be
useful for the recursive import to keep going past failures. However it seems
such failures should be logged, and ideally written to standard output in some
form like

(error “import failed: <package name>”)

so they could be found clearly in the generated expression.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]