all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Making substitute* throw an error if substition failed?
@ 2016-10-14 22:05 Ricardo Wurmus
  2016-10-15  7:53 ` Hartmut Goebel
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2016-10-14 22:05 UTC (permalink / raw)
  To: guix-devel

Hi Guix,

it happened a couple of times already that a “substitute*” expression
silently failed and I only found out about it when investigating the
remains of a failing build (“guix build -K”).  This can easily happen
when a package is updated and substitutions “anchors” no longer exist in
the updated source code.

Would it be desirable to change “substitute*” (or replace it) such that
it throws an error or returns a value if substitution failed?  This
might be helpful for the more complex packages with many substitutions.
If we make it return a value (#f for error) it would also make our build
phases a little prettier, I think.  (Now we forcefully return #t in any
case and that seems wrong.)

~~ Ricardo

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

end of thread, other threads:[~2016-10-18 12:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 22:05 Making substitute* throw an error if substition failed? Ricardo Wurmus
2016-10-15  7:53 ` Hartmut Goebel
2016-10-15  8:06 ` Danny Milosavljevic
2016-10-15 17:07 ` Alex Kost
2016-10-17  8:50 ` Ludovic Courtès
2016-10-17 21:08   ` Efraim Flashner
2016-10-18 12:41     ` 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.