GNU bug report logs - #44525
Derivation of computed-file has no outputs

Previous Next

Package: guix;

Reported by: Stefan <stefan-guix <at> vodafonemail.de>

Date: Sun, 8 Nov 2020 20:20:02 UTC

Severity: normal

Done: Stefan <stefan-guix <at> vodafonemail.de>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 44525 <at> debbugs.gnu.org (full text, mbox):

From: Stefan <stefan-guix <at> vodafonemail.de>
To: Marius Bakke <marius <at> gnu.org>
Cc: 44525 <at> debbugs.gnu.org
Subject: Re: bug#44525: Derivation of computed-file has no outputs
Date: Mon, 9 Nov 2020 00:38:40 +0100
Hi Marius!

> Assuming you intended to write (%current-system) to test.txt, you can do
> something along these lines:
> 
>  (computed-file "test.txt"
>                 #~(call-with-output-file #$output
>                     (lambda (port)
>                       (format port #$(%current-system)))))

Thanks for this solution.

> That's expected: this derivation does not produce any outputs.
> So I think this is not-a-bug.  WDYT?


I think I got a bit distracted by the functionality of plain-file and the similar wording of the documentation of computed-file.

Thanks, I’ll close this issue.


Bye

Stefan



This bug report was last modified 4 years and 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.