From unknown Thu Jun 12 08:40:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35881: guix import hackage: option -r and -s interact poorly Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 May 2019 13:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35881 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 35881@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15587049148293 (code B ref -1); Fri, 24 May 2019 13:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 May 2019 13:35:14 +0000 Received: from localhost ([127.0.0.1]:46272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUALp-00029h-Nd for submit@debbugs.gnu.org; Fri, 24 May 2019 09:35:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUALo-00029K-7M for submit@debbugs.gnu.org; Fri, 24 May 2019 09:35:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:46967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUALj-0001RB-2O for submit@debbugs.gnu.org; Fri, 24 May 2019 09:35:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUALi-0003at-19 for bug-guix@gnu.org; Fri, 24 May 2019 09:35:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUALh-0001PO-7c for bug-guix@gnu.org; Fri, 24 May 2019 09:35:05 -0400 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]:44136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUALh-0001EA-1G for bug-guix@gnu.org; Fri, 24 May 2019 09:35:05 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 320F34FE5A for ; Fri, 24 May 2019 15:34:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id gc8n5mZEluaN for ; Fri, 24 May 2019 15:34:57 +0200 (CEST) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: <25A23A71-E2DB-48F8-9F66-FE9040D01E25@vllmrt.net> Date: Fri, 24 May 2019 15:34:56 +0200 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:2050:104:0:1:25:1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.6 (-) 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.6 (--) Recursive import from a cabal file on standard input doesn=E2=80=99t = work, since imports of dependencies are attempted from standard input. This typically fails due to EOF. The sensible behaviour would probably be to only read the initial package from standard input, and then fall back to hackage. Alternatively, the options could be made to conflict.