From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 28 16:20:44 2024 Received: (at submit) by debbugs.gnu.org; 28 Jun 2024 20:20:44 +0000 Received: from localhost ([127.0.0.1]:46578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNI5L-0000py-Od for submit@debbugs.gnu.org; Fri, 28 Jun 2024 16:20:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:41824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNI5K-0000pr-FW for submit@debbugs.gnu.org; Fri, 28 Jun 2024 16:20:42 -0400 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 1sNI5J-00024a-Tw for bug-guix@gnu.org; Fri, 28 Jun 2024 16:20:41 -0400 Received: from mail-108-mta101.mxroute.com ([136.175.108.101]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNI5I-00048m-2r for bug-guix@gnu.org; Fri, 28 Jun 2024 16:20:41 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta101.mxroute.com (ZoneMTA) with ESMTPSA id 1906081cac900017a3.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 28 Jun 2024 20:20:37 +0000 X-Zone-Loop: 941961f46cfa5f276c57e49911d25222453cc244afe4 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zjocL0RR69g+tp+1mTUsEzPijgbSeFbvgijGHgQVNrE=; b=KDm+/+nvTMStLulnmHgXjjRS4X BQ8zJXEwTypk8pZNN/Dk8vmB4dYqdkYDJUd12n/wn8JZQ7zBVlOIU2WeSCCclG9aN8trylrAw+un4 b8hFcXQYhrqezgM9Q6ROtlGTEpBvxB8FnoKfQfiURxrh/+uWTbQ8/LEbdUqXccfnhXxhXydGkChUt zCxPxLI7WAa0l5PU2KwmQBRk2/OWkoafQTW4sBduS3hDZV8uQbTqMq99+MPi7XoJQsRCBlYuZN8Gk N742BHWq+hPGp2HskpXeBHClAAT4jmGO4UW/6GfSVw6xXzxR/P27nOP+vtDLhjrnxZz/iFh323I0J m7GqTZ1Q==; From: Richard Sent To: bug-guix@gnu.org Subject: Commands that pull channels don't cleanly report errors Date: Fri, 28 Jun 2024 16:20:27 -0400 Message-ID: <87le2ovmyc.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.101; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta101.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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.4 (--) Hi Guix! When a command such as guix time-machine pulls a channel, if there is invalid scheme code in, say, the .guix-authorizations file, the error message reported to the user doesn't make it clear where the problem is. --8<---------------cut here---------------start------------->8--- gibraltar :( temp$ guix time-machine -C channels.scm -- describe Updating channel 'pita-packs' from Git repository at 'https://codeberg.org/= JetpackJackson/guix-pita-packs.git'... Authenticating channel 'pita-packs', commits 2970fc3 to 429703d (3 new comm= its)... =E2=96=95=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=89 = =E2=96=8Fice-9/boot= -9.scm:1685:16: In procedure raise-exception: #:5:1: unexpected end of input while searching for: ) --8<---------------cut here---------------end--------------->8--- In this case, pita-pack's .guix-authorizations file is missing ending parenthesis. This error message should be improved to say a) What channel is causing the problem b) What file we're parsing that threw the error See some of the chat log here: https://logs.guix.gnu.org/guix/2024-06-28.log. --=20 Take it easy, Richard Sent Making my computer weirder one commit at a time. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 28 19:00:31 2024 Received: (at 71828) by debbugs.gnu.org; 28 Jun 2024 23:00:31 +0000 Received: from localhost ([127.0.0.1]:36319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNKZz-0001Kt-81 for submit@debbugs.gnu.org; Fri, 28 Jun 2024 19:00:31 -0400 Received: from mx2.dismail.de ([159.69.191.136]:42648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNKZw-0001Ke-GS for 71828@debbugs.gnu.org; Fri, 28 Jun 2024 19:00:29 -0400 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id e8176ac1; Sat, 29 Jun 2024 01:00:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:in-reply-to:date:message-id:mime-version:content-type; s=20190914; bh=gfTNfbWnXqbxI7+W7SXXWjG9qZcwWmtoY9do6bOgQYE=; b= ZY/q0Vhfz4P5o/ly6WTgYglj7f6l1yoxhe/44CobUwfJ6juAuLW0R6/Ngst8Z+P4 qw1HnwjIqq6AGZfPZT4wrY8Klg2lpujtZ0szchCRg8N1BVDFz4el9Qr9eAd3uq2q 7MtJR6/DMVNFWS8PqiWzJ3kQvOrTer/o3fawTFhqz0hLUDc6ed5PS83fQqOxC32B KMcjbVYndKMmC93NE0NqHkDFdQicC0Y3x9od7QjqIJmYdSHJuHLLVZkgx11fydpB 966lgSlP/fWi8IlEg1bmdrLIFNQpJWHMj3VpvyU+HeoUA1pvDL3s0u2cX8UtW180 Wxa2VM1owHJMfXEHkAVV2w== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id b34b0e11; Sat, 29 Jun 2024 01:00:20 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 6891908d; Sat, 29 Jun 2024 01:00:20 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 684785e6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 29 Jun 2024 01:00:20 +0200 (CEST) From: jgart To: 71828@debbugs.gnu.org Subject: Re: Commands that pull channels don't cleanly report errors In-Reply-To: <87le2ovmyc.fsf@freakingpenguin.com> Date: Fri, 28 Jun 2024 18:00:17 -0500 Message-ID: <87frswoepq.fsf@dismail.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71828 Cc: Richard Sent 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: -3.3 (---) Hi, That's a great idea. Do you want to send a patch for that? all best, jgart