From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id RxLtMnEf/2MfFgAAbAwnHQ (envelope-from ) for ; Wed, 01 Mar 2023 10:48:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iBWkMXEf/2O+KAEAG6o9tA (envelope-from ) for ; Wed, 01 Mar 2023 10:48:33 +0100 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 A04BA1EE12 for ; Wed, 1 Mar 2023 10:48:33 +0100 (CET) Authentication-Results: aspmx1.migadu.com; none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXJ48-0004NR-2G; Wed, 01 Mar 2023 04:48:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXJ46-0004NH-Q3 for bug-guix@gnu.org; Wed, 01 Mar 2023 04:48:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXJ46-0002Fx-Hg for bug-guix@gnu.org; Wed, 01 Mar 2023 04:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXJ46-0001Wp-BU for bug-guix@gnu.org; Wed, 01 Mar 2023 04:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#61885: `guix import go` fails outside of pre-inst-env Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 01 Mar 2023 09:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61885 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: winter@winter.cafe, 61885@debbugs.gnu.org Received: via spool by 61885-submit@debbugs.gnu.org id=B61885.16776640375799 (code B ref 61885); Wed, 01 Mar 2023 09:48:02 +0000 Received: (at 61885) by debbugs.gnu.org; 1 Mar 2023 09:47:17 +0000 Received: from localhost ([127.0.0.1]:52743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXJ3N-0001VT-60 for submit@debbugs.gnu.org; Wed, 01 Mar 2023 04:47:17 -0500 Received: from jpoiret.xyz ([206.189.101.64]:36674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXJ3L-0001VL-D4 for 61885@debbugs.gnu.org; Wed, 01 Mar 2023 04:47:15 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id DA2B0185309; Wed, 1 Mar 2023 09:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1677664032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jbGOWeRE4wfynoKBn3pc/rbWdDy0lxmIvuoeP+y4Do8=; b=vYI52IdfHJYGaBO3kpzTFViLlzUFfW6/IRwSrg2r8GG+FvbRdzgOycHr9ICXRieaZydyNs kNr7wIV23vqRhk0Fg6HcSH98l/X688YqLzKc0qnLH6DB5L8KzdZ0Apvrl4CMaavgM1+aPb rE54XM8WVMDUNN/utnwQ9fETnBsw/bBWCHHd61Y/f0pbRVnmBsIXYjTjPpV8tTGw3ODTu/ SK6u0HhO9eZ6hBfUd7peW7dukHdXPONRVsnOBdUwSovxTWRQaj3GY/ErCBe1O6XfU18aYY p92HIqs2b/1SP9BVoxCpHHd7CqtcB1hHVZzurjMPaDlQWX6KzrGwOaDITKwUtQ== In-Reply-To: References: Date: Wed, 01 Mar 2023 10:47:07 +0100 Message-ID: <875ybkolb8.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: / 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: , Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Spam-Score: -4.00 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: A04BA1EE12 X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: dKspQt610/kH --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, winter--- via Bug reports for GNU Guix writes: > Hi, > > As of commit ec8c7370dfd66136f7cb517d31fa6fda31e2cb74, the following `gui= x import` invocation fails: > > $ guix import go --recursive github.com/tdewolff/minify/v2 > [...] > In gnu/packages/check.scm: > 1037:13 1 (_) > In ice-9/boot-9.scm: > 1685:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > error: go-github-com-robfig-cron: unbound variable This is way worse: (gnu packages golang) cannot be loaded at all! This is caused by a cycle, (gnu packages golang) uses (gnu packages check) and vice-versa, and go-github-com-robfig-cron is defined in (gnu packages golang)! So depending on whether you first use (gnu packages check) or (gnu packages golang), go-github-com-robfig-cron will not have been defined yet, hence the error. Using (gnu packages check) then (gnu packages golang) doesn't make the error appear. The solution imo, esp. since (gnu packages check) already uses (gnu packages golang), is to have the variant package defined alongside the parent. Here is a patch that should fix this. Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmP/HxsQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5FhcailDkDACWJoUikOH0Sm3TuN2wub9ClDdU2XiewHng 11rSnwrUcwIBYIIove1N/q0v2lThStNYyYbMaeN8Zzv43vhdaOZdvY+AYW0S/3Gs grtppeOV1+5484KJ9abgAHQvDh11xWQPxgsgWcAouRwuTkaLCWrf8nitBugxA6zc XT62GivMl+mSn7gBm3ws2npJYBaa1xbbbWWHiQQdMsg+Xc+aGKDmVfjspxSPf/+7 8fBZnl87Lfg7ZwyfdsJa1EX+RWWTXCd9pEnrWh2UcSbFwnSXQy2s+L13XJj+Roej 2qmZi4EZvYhtEUhFc+JMFYkHtjcVSQce0Vqi3lGp8/oCkH6kxTNtyEI/s5oZQVSj WMn8o2iTwElcuVGbYpUYIe0bydVZZek3AA6WjxF/YLz7hOICn+pTqGJ+fcdxmqxg bQ8Rahl4ihwdoe4Aonw1/HhCCN0OSmilXh5PClgWkwz7u9pCCFPrfdQWVJhj3P2u ZLNxLOPX7egZpjv4tja87U+qaqGNGyw= =YPeR -----END PGP SIGNATURE----- --=-=-=--