unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31974: If a phase returns #f, a warning is issued, but the build continues
@ 2018-06-26  3:13 Mark H Weaver
  2018-06-27 20:14 ` Ludovic Courtès
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Mark H Weaver @ 2018-06-26  3:13 UTC (permalink / raw)
  To: 31974

I just noticed that I made a mistake in commit
d8a3b1b9e847d4a44d2695f95af77170d4d2788f, which changed 'gnu-build' in
(guix build gnu-build-system) to issue a warning if a phase returns a
value other than #t.

The result is that if a phase returns a value other than #t, a warning
is issued, but the build nonetheless continues to the next phase, and
the build could ultimately "succeed" even some phases returned #f.

In other words, the return values of phases are effectively ignored,
except for the warning, so the only way to cause a build with phases to
fail is to raise an exception.

We can't fix this problem without a full rebuild.  Sorry about that :-(

The only good news here is that I've already fixed all of the core
packages to return #t from all phases and to report errors using
exceptions.  Ditto for all of the packages that I use on my GNOME
desktop.  The remaining packages that might return #f from a phase could
be fixed in 'master'.

      Mark

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

end of thread, other threads:[~2019-01-09 20:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-26  3:13 bug#31974: If a phase returns #f, a warning is issued, but the build continues Mark H Weaver
2018-06-27 20:14 ` Ludovic Courtès
2018-06-28  5:09   ` Mark H Weaver
2018-06-28  5:56     ` Gábor Boskovits
2018-06-28 15:46       ` Gábor Boskovits
2018-06-28 15:10     ` Ludovic Courtès
2018-06-28 17:51       ` Mark H Weaver
2018-08-04  3:23 ` Mark H Weaver
2018-08-19 13:53   ` Ludovic Courtès
2019-01-09 20:38 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).