X-Loop: help-debbugs@HIDDEN Subject: bug#58112: OPAM importer fails in lookup-node Resent-From: Csepp <raingloom@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Tue, 27 Sep 2022 11:52:01 +0000 Resent-Message-ID: <handler.58112.B.166427951724325 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 58112 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58112 <at> debbugs.gnu.org Cc: julien@HIDDEN X-Debbugs-Original-To: Bug reports for GNU Guix <bug-guix@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.166427951724325 (code B ref -1); Tue, 27 Sep 2022 11:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Sep 2022 11:51:57 +0000 Received: from localhost ([127.0.0.1]:53193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1od981-0006KH-CE for submit <at> debbugs.gnu.org; Tue, 27 Sep 2022 07:51:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:35626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <raingloom@HIDDEN>) id 1od97y-0006K7-3V for submit <at> debbugs.gnu.org; Tue, 27 Sep 2022 07:51:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>) id 1od97T-00026I-2i for bug-guix@HIDDEN; Tue, 27 Sep 2022 07:51:41 -0400 Received: from mx1.riseup.net ([198.252.153.129]:35914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>) id 1od97Q-0006PW-RU for bug-guix@HIDDEN; Tue, 27 Sep 2022 07:51:22 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4McHyM35BKzDqVS; Tue, 27 Sep 2022 11:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1664279478; bh=h8a3TWzK6g4pqQuMm8W1hDqmzW0aqR2ISgzcyh5zFLk=; h=From:To:Cc:Subject:Date:From; b=I7YEecQ97YzpHpMGXo0lJ2TT299Cb173LJdBl+DU5DgF/UcTxBBc/e6DZIym6Sesu s4cH/TZgzX1PMCDOK6vvtgBouZX6zIfkZSxh6+q837MyxiKtOFcWrF3s6ScDevImHs ELwDDEb8BLhHsAx/zvY0F1vc2oN3j5ugnEPoRJS4= X-Riseup-User-ID: 1892281332701C09077C0EF436AF6E70A3CEF6398B035765FBA8F63730038972 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4McHyL42Jrz5vYk; Tue, 27 Sep 2022 11:51:06 +0000 (UTC) From: Csepp <raingloom@HIDDEN> Date: Tue, 27 Sep 2022 13:33:56 +0200 Message-ID: <87sfkd11eh.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@HIDDEN; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) The specific error is this: Wrong number of values returned to continuation (expected 2) It is caused by opam->guix-package silencing intermediate errors by using and-let* (the poor person's Maybe monad) and returning #f when the receiving side expects two return values. Initial reproducer: guix import opam -r mirage Also happens with opam-monorepo. Cc-ing Julien whom might know why the code is structured this way? It's not like the calling side can handle a falsy return and the error is not detected early either, so the user doesn't even know what is causing it. Can I just turn it all into errors? Or maybe we can use the condition system?
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Csepp <raingloom@HIDDEN> Subject: bug#58112: Acknowledgement (OPAM importer fails in lookup-node) Message-ID: <handler.58112.B.166427951724325.ack <at> debbugs.gnu.org> References: <87sfkd11eh.fsf@HIDDEN> X-Gnu-PR-Message: ack 58112 X-Gnu-PR-Package: guix Reply-To: 58112 <at> debbugs.gnu.org Date: Tue, 27 Sep 2022 11:52:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 58112 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 58112: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58112 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.