From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QIEHCoDx518dKgAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 02:29:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qJ3SBYDx519bSgAAbx9fmQ (envelope-from ) for ; Sun, 27 Dec 2020 02:29:20 +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 8D30D9401C0 for ; Sun, 27 Dec 2020 02:29:18 +0000 (UTC) Received: from localhost ([::1]:40232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktLo3-0001xV-Vg for larch@yhetil.org; Sat, 26 Dec 2020 21:29:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktLnq-0001xI-8k for bug-guix@gnu.org; Sat, 26 Dec 2020 21:29:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48589) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktLnq-0007iu-0L for bug-guix@gnu.org; Sat, 26 Dec 2020 21:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ktLnp-0007UZ-SD for bug-guix@gnu.org; Sat, 26 Dec 2020 21:29:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45453: Error when I try to build a package using a JSON definition Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 27 Dec 2020 02:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45453 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ryan Prior ,45453@debbugs.gnu.org Received: via spool by 45453-submit@debbugs.gnu.org id=B45453.160903610528746 (code B ref 45453); Sun, 27 Dec 2020 02:29:01 +0000 Received: (at 45453) by debbugs.gnu.org; 27 Dec 2020 02:28:25 +0000 Received: from localhost ([127.0.0.1]:60135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktLnF-0007Ta-2Q for submit@debbugs.gnu.org; Sat, 26 Dec 2020 21:28:25 -0500 Received: from lepiller.eu ([89.234.186.109]:58474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktLnC-0007TP-MI for 45453@debbugs.gnu.org; Sat, 26 Dec 2020 21:28:23 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 0a3cb5f2; Sun, 27 Dec 2020 02:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=MVgggsgggNY39z698o//m83kaVmYqMFBmExPALb1QIA=; b=jsFrdPrnyldU j4Upbk8RuVlMMJklN0NOzZXyXnxosIxrSOzMChCDpzL/OVVI/jJCYQxmD94OsLPx M5RXhVO4ZopZfrw93KLl2/Mqixlb8aIltCIoAkl1jDAd0ykfDkps9etBObwonY9r X3YGZWqKAUrPplXKRwn3RHcvSPh6DeRGavcpb/Hlfsxc6nb8ydts9Bo7rgmn7PiW Q+EIaoyyH5wAcB/DKApR/Ew4OgVfCxc7b9rYtXA/gb79wbb+7a8Qgxw2xTXIYY0A 1DZXTSQdk30tpgoorehirFHPso1A0a8YYdswoVgd/QALmEZCNdDLhIq93efSJZvL F6CtNHrABg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id d571a265 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 27 Dec 2020 02:28:19 +0000 (UTC) Date: Sat, 26 Dec 2020 21:28:10 -0500 User-Agent: K-9 Mail for Android In-Reply-To: <87wnx4nkx1.fsf@protonmail.com> References: <87wnx4nkx1.fsf@protonmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----L1VPZY8X9QE233C8U2JFFTLEBMPJE2" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: <182B84CA-FA45-4184-A462-96B0C28D49BE@lepiller.eu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.28 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=jsFrdPrn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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-Migadu-Queue-Id: 8D30D9401C0 X-Spam-Score: 0.28 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6NkzfvsqW7GM ------L1VPZY8X9QE233C8U2JFFTLEBMPJE2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I'm surprised guix builds from a json file=E2=80=A6 doesn't it simply inter= pret it as a guile file, and fails at that? Anyway, in the log you attached, it seems the issue is with downloading th= e sources=2E For some reason it cannot resolve the github=2Ecom domain=2E I= wonder if this is just a transient network issue on your side? Have you tr= ied again later? If not, it could be that the source derivation is not fixed-output=2E Afte= r all, the json definition doesn't specify a hash (it's not even an origin = record)=2E Again I'm confused by the fact that guix lets you specify packag= es with json, so I'm not sure how that part is converted to a package objec= t=2E Is that documented? Le 26 d=C3=A9cembre 2020 19:38:18 GMT-05:00, Ryan Prior via Bug reports fo= r GNU Guix a =C3=A9crit : >Hi guix! Today I wrote a package in Guile and then decided to try and >reproduce the same thing using JSON, but I hit a snag=2E I'm attaching >the package definition in its Guile and JSON forms, along with the >error >I get when I try to build the package using `guix build -f >countdown=2Ejson'=2E > >Any idea what the issue here is or how I should go about debugging? > >Thank you! >Ryan ------L1VPZY8X9QE233C8U2JFFTLEBMPJE2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I'm surprised guix builds from a json file=E2=80= =A6 doesn't it simply interpret it as a guile file, and fails at that?
<= br>Anyway, in the log you attached, it seems the issue is with downloading = the sources=2E For some reason it cannot resolve the github=2Ecom domain=2E= I wonder if this is just a transient network issue on your side? Have you = tried again later?

If not, it could be that the source derivation is= not fixed-output=2E After all, the json definition doesn't specify a hash = (it's not even an origin record)=2E Again I'm confused by the fact that gui= x lets you specify packages with json, so I'm not sure how that part is con= verted to a package object=2E Is that documented?

Le 26 d=C3=A9cembre 2020 19:38:18 GMT-05:00, Ryan Prior via Bug re= ports for GNU Guix <bug-guix@gnu=2Eorg> a =C3=A9crit :
Hi guix! Today I wrote a package in Guile and then d=
ecided to try and
reproduce the same thing using JSON, but I hit a snag= =2E I'm attaching
the package definition in its Guile and JSON forms, al= ong with the error
I get when I try to build the package using `guix bui= ld -f countdown=2Ejson'=2E

Any idea what the issue here is or how I = should go about debugging?

Thank you!
Ryan

------L1VPZY8X9QE233C8U2JFFTLEBMPJE2--