unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why should build phases not return unspecified values?
@ 2017-12-16 23:28 Arun Isaac
  2017-12-17  7:03 ` Pjotr Prins
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Arun Isaac @ 2017-12-16 23:28 UTC (permalink / raw)
  To: guix-devel


Whenever we have a build phase that ends with a call (for example, to
substitute, chdir, symlink, etc) that returns an unspecified value, we
append a #t so that the return value is a boolean. However, the build
system, as it stands currently, does not mind an unspecified value, and
treats it as a success. As a result, forgetting to add a #t at the end
of custom phases is a common mistake. To fix this, I have submitted a
patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29745 that
modifies the build system to reject unspecified values as
failures.

However, IMO, the addition of #t at the end of certain phases, does not
contribute anything of value and we should simply be at peace with
phases returning unspecified values. Am I missing something here?

WDYT?

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

end of thread, other threads:[~2017-12-20 10:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-16 23:28 Why should build phases not return unspecified values? Arun Isaac
2017-12-17  7:03 ` Pjotr Prins
2017-12-17  7:10 ` Alex Vong
2017-12-17  8:22   ` Arun Isaac
2017-12-17 10:35     ` Clément Lassieur
2017-12-18  9:40 ` Andy Wingo
2017-12-19 21:35 ` Mark H Weaver
2017-12-20  2:15   ` Danny Milosavljevic
2017-12-20  9:27   ` Ludovic Courtès
2017-12-20 10:15     ` Ricardo Wurmus
2017-12-20 10:27     ` Arun Isaac

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).