* bug#36592: no output for guix package -f when the file evaluates to nothing
@ 2019-07-11 9:31 Julien Lepiller
2019-09-20 7:42 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Julien Lepiller @ 2019-07-11 9:31 UTC (permalink / raw)
To: 36592
Users tend to copy what they see in our code base, so it's not rare to have to help them realise that if their last statement is (define-public ...), the file doesn't evaluate to a package.
Running guix build -f mypackage.scm at least gives an error saying it doesn't know how to compile #<unspecified>.
Running guix package -f mypackage.scm returns immediately with no error message and a status of 0, but doesn't actually build or install anything. You can even try with an empty file :)
There should be an error message, and probably even a hint.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#36592: no output for guix package -f when the file evaluates to nothing
2019-07-11 9:31 bug#36592: no output for guix package -f when the file evaluates to nothing Julien Lepiller
@ 2019-09-20 7:42 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2019-09-20 7:42 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 36592-done
Hello,
Julien Lepiller <julien@lepiller.eu> skribis:
> Users tend to copy what they see in our code base, so it's not rare to have to help them realise that if their last statement is (define-public ...), the file doesn't evaluate to a package.
>
> Running guix build -f mypackage.scm at least gives an error saying it doesn't know how to compile #<unspecified>.
>
> Running guix package -f mypackage.scm returns immediately with no error message and a status of 0, but doesn't actually build or install anything. You can even try with an empty file :)
>
> There should be an error message, and probably even a hint.
Fixed in f9c0400392843540a87985a67ffb9fb6e4dbc2fa. It doesn’t provide a
hint though.
I thought we may want to provide ‘load*’ a type predicate that it would
check, so that it can say “got #<undefined>, expected <package>”.
However, we’d need a contract rather than a mere predicate to have nice
error reporting, so I decided to punt on this for now.
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-20 7:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-11 9:31 bug#36592: no output for guix package -f when the file evaluates to nothing Julien Lepiller
2019-09-20 7:42 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.