From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Vollmert Subject: bug#35883: guix import hackage: recursive import fails silently on errors Date: Fri, 24 May 2019 15:59:07 +0200 Message-ID: <2E77BF34-95BA-4E7D-A605-3CB42C82623F@vllmrt.net> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAph-0004Xh-4B for bug-guix@gnu.org; Fri, 24 May 2019 10:06:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUApg-0003u0-5j for bug-guix@gnu.org; Fri, 24 May 2019 10:06:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUApg-0003ts-2Y for bug-guix@gnu.org; Fri, 24 May 2019 10:06:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUApf-0005N7-Mb for bug-guix@gnu.org; Fri, 24 May 2019 10:06:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:40530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAoY-0003TT-EH for bug-guix@gnu.org; Fri, 24 May 2019 10:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUAjI-0006pQ-HS for bug-guix@gnu.org; Fri, 24 May 2019 09:59:29 -0400 Received: from mx2a.mailbox.org ([2001:67c:2050:104:0:2:25:2]:51910 helo=mx2.mailbox.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUAjI-0006lk-B2 for bug-guix@gnu.org; Fri, 24 May 2019 09:59:28 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 1EEB1A107C for ; Fri, 24 May 2019 15:59:25 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id dGFuFrXX3ZzY for ; Fri, 24 May 2019 15:59:07 +0200 (CEST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 35883@debbugs.gnu.org $ guix import hackage not-a-package guix import: error: failed to download cabal file for package = 'not-a-package=E2=80=99 $ echo $? 1 $ guix import hackage -r not-a-package $ echo $? 0 It might be argued that the error code is fine, since in general it = could be useful for the recursive import to keep going past failures. However it = seems such failures should be logged, and ideally written to standard output = in some form like (error =E2=80=9Cimport failed: =E2=80=9D) so they could be found clearly in the generated expression.