From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id BVgGLxhZqF9rAwAA0tVLHw (envelope-from ) for ; Sun, 08 Nov 2020 20:46:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ABliKhhZqF+MNgAA1q6Kng (envelope-from ) for ; Sun, 08 Nov 2020 20:46:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5FDA594011A for ; Sun, 8 Nov 2020 20:46:16 +0000 (UTC) Received: from localhost ([::1]:54962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbrZn-00038i-B8 for larch@yhetil.org; Sun, 08 Nov 2020 15:46:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbrZa-000373-2e for bug-guix@gnu.org; Sun, 08 Nov 2020 15:46:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbrZZ-0000Pv-Q6 for bug-guix@gnu.org; Sun, 08 Nov 2020 15:46:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbrZZ-0003FB-LL for bug-guix@gnu.org; Sun, 08 Nov 2020 15:46:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44525: Derivation of computed-file has no outputs Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 08 Nov 2020 20:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44525 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Stefan , 44525@debbugs.gnu.org Received: via spool by 44525-submit@debbugs.gnu.org id=B44525.160486830912407 (code B ref 44525); Sun, 08 Nov 2020 20:46:01 +0000 Received: (at 44525) by debbugs.gnu.org; 8 Nov 2020 20:45:09 +0000 Received: from localhost ([127.0.0.1]:33157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbrYj-0003E3-DJ for submit@debbugs.gnu.org; Sun, 08 Nov 2020 15:45:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbrYf-0003DC-Ad for 44525@debbugs.gnu.org; Sun, 08 Nov 2020 15:45:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56108) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbrYY-00009u-JH; Sun, 08 Nov 2020 15:44:58 -0500 Received: from host-37-191-236-253.lynet.no ([37.191.236.253]:45434 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbrYW-000499-2Q; Sun, 08 Nov 2020 15:44:56 -0500 From: Marius Bakke In-Reply-To: <045B8C31-3947-4EA6-8B49-5A3B48F18908@vodafonemail.de> References: <045B8C31-3947-4EA6-8B49-5A3B48F18908@vodafonemail.de> Date: Sun, 08 Nov 2020 21:44:51 +0100 Message-ID: <87o8k7fuik.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -3.61 X-TUID: uKHhrJVeaiLR --=-=-= Content-Type: text/plain Stefan writes: > Hi! > > I try to use a computed-file as an input to a bootloader profile hook function. Using guix system I get this error message: > > guix system: error: reference to invalid output 'out' of derivation '/gnu/store/946szbrwn3ja74yjnibbhjisjflvsk73-test.txt.drv' > > This is the simple definition of the computed-file: > > (computed-file "test.txt" (with-imported-modules '((guix utils)) #~(%current-system))) That's expected: this derivation does not produce any outputs. 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))))) So I think this is not-a-bug. WDYT? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFDBAEBCgAtFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl+oWMQPHG1hcml1c0Bn bnUub3JnAAoJEKKgbfKjOlT6bVsH/2RfMEtTiaTjfVL2wAMjKnqUMvL7Xr3qVPwn q65YmfqvlLVLXATjPS0RzzXwxlSw7uWPWLvRPqXCJFvbYd9FMJMtwMH188t+TzZn IRUgwLwuGOteDt2A0pmmDFm5Kt26Tzv3MsmwaNhlM7mZlx9j8n0djySHRuIW6Awm 6IQO8q1F5ZFXSblYKlS79M+GoNbZQ1oy1On8JYiSMPRK8NHqwlUjXGe6HZkg053V eG4yhyRLw0pjYe1rkIo8FEutg+BRyCP4M1U3/FC9zsubnNz30gfcFGrfJvPZi19W HwkO2+R9mR7AEK/tRRXOYW3nbvqy2DKo4PE9flXou5s8nKhlcJg= =5qYe -----END PGP SIGNATURE----- --=-=-=--