From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 12 07:33:47 2021 Received: (at submit) by debbugs.gnu.org; 12 Dec 2021 12:33:47 +0000 Received: from localhost ([127.0.0.1]:50841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwO31-0002ue-8C for submit@debbugs.gnu.org; Sun, 12 Dec 2021 07:33:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:42802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwO30-0002uY-6k for submit@debbugs.gnu.org; Sun, 12 Dec 2021 07:33:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwO2z-0004Ud-6L for bug-guix@gnu.org; Sun, 12 Dec 2021 07:33:46 -0500 Received: from sender3-of-o50.zoho.com ([136.143.184.50]:21680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwO2w-0005hQ-0e for bug-guix@gnu.org; Sun, 12 Dec 2021 07:33:44 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1639312416; cv=none; d=zohomail.com; s=zohoarc; b=V6W/GWahKaAhXipQo7GRur7cL+uLfPJePPfZqDq8dvVXKBQzNJbZ8Q4zckDxUNhvYzwVF/euW5FnIQCLJXyrmlhFz3+UHnny7B7qANY9pwkaokK1+7IU/x41kQ+LrD9DO+UXX5j0c3ukTqEQPLW0IgR0yDuiKsvVXmjpRptQGBk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639312416; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=FwYwK3qe9g+SUuvgEy7C1qs8CcgQs5t+qieAGWe/WTo=; b=C+3/PwtbwisrX8MaPuuIDGSSe3fG7XV6vI5UIPiJMBWWtrY9/ZxUlgYxFnmUQyBC/DRhlq3TEXQPc6Ft2meywWzHWfa+QCBFGLx1+o2fLB8lxShcBhGoS6UkXfzRwv1OpILJHQIaSU99MFFS1HQ7rVvSwGjWAvWbDww++U/QqGU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1639312416; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=FwYwK3qe9g+SUuvgEy7C1qs8CcgQs5t+qieAGWe/WTo=; b=QOQ6ENGblTqfJv3JbonUJgVW5qpmMo+4mKSftJ+iYwAp1pMQ09AhLs+DgCxdybUZ lpwh/YI6LLpu4iYmOuN60pv+uGifKqhdRNVguyRP1G9P/slBZsYPWK7GdxXzzLAEWux MHan0roNQQHJUynPl8w/MaX+n0vevDQNYAjszOK8= Received: from localhost (p54ad4c63.dip0.t-ipconnect.de [84.173.76.99]) by mx.zohomail.com with SMTPS id 1639312414679140.12998675107497; Sun, 12 Dec 2021 04:33:34 -0800 (PST) User-agent: mu4e 1.6.6; emacs 28.0.50 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: =?utf-8?B?4oCcZ3VpeCBzaGVsbOKAnQ==?= in Guix checkout prints backtrace Date: Sun, 12 Dec 2021 12:30:54 +0000 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87fsqym290.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.184.50; envelope-from=rekado@elephly.net; helo=sender3-of-o50.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) When running =E2=80=9Cguix shell=E2=80=9D in a source checkout of Guix prin= ts a backtrace: --8<---------------cut here---------------start------------->8--- $ guix shell guix shell: loading environment from '/home/rekado/dev/gx/utf/guix.scm'... hint: Consider passing the `--check' option once to make sure your shell do= es not clobber environment variables. Backtrace: 14 (primitive-load "/home/rekado/.config/guix/current/bin/guix") In guix/ui.scm: 2206:7 13 (run-guix . _) 2169:10 12 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) 1752:10 10 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/store.scm: 658:37 9 (thunk) 1320:8 8 (call-with-build-handler # _) In guix/status.scm: 802:4 7 (call-with-status-report _ _) In guix/scripts/environment.scm: 317:4 6 (_) In srfi/srfi-1.scm: 673:15 5 (append-map # ((gc-root . "/home/rekado/.cache/guix/profiles/repcfr= atbkwoufn7si47j5owec2csk4wg7o5=E2=80=A6") =E2=80=A6)) 586:29 4 (map1 ((gc-root . "/home/rekado/.cache/guix/profiles/repcfratb= kwoufn7si47j5owec2csk4wg7o5ps5qcoyl22ff5kcq") (load package "/home/rekado/d= ev/gx/utf/guix.scm") (# . #t) # # =E2=80=A6)) 586:17 3 (map1 ((load package "/home/rekado/dev/gx/utf/guix.scm") (ad-h= oc? . #t) (system . "x86_64-linux") (substitutes? . #t) (offload? . #t) (gr= aft? . #t) (# . #t) (# . #t) # # #)) In guix/scripts/environment.scm: 303:4 2 (packages->outputs _ _) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `match-error' with args `("match" "no matching pattern" #)'. $ --8<---------------cut here---------------end--------------->8--- That=E2=80=99s probably because =E2=80=9Cguix.scm=E2=80=9D doesn=E2=80=99t = return a package. It=E2=80=99s not an environment definition, so it=E2=80=99s expected that this doesn=E2=80= =99t work. But this backtrace is pretty ugly. It would be nicer to bail if guix.scm doesn=E2=80=99t evaluate to a package value. --=20 Ricardo