From unknown Sun Jun 15 08:57:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36592: no output for guix package -f when the file evaluates to nothing Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 11 Jul 2019 09:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36592 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36592@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156283748219905 (code B ref -1); Thu, 11 Jul 2019 09:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2019 09:31:22 +0000 Received: from localhost ([127.0.0.1]:37015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlVQA-0005Az-EE for submit@debbugs.gnu.org; Thu, 11 Jul 2019 05:31:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:54385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlVQ7-0005Aq-RL for submit@debbugs.gnu.org; Thu, 11 Jul 2019 05:31:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44999) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlVQ6-0004A3-SP for bug-guix@gnu.org; Thu, 11 Jul 2019 05:31:19 -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_05, RCVD_IN_BL_SPAMCOP_NET autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlVQ4-0003wx-59 for bug-guix@gnu.org; Thu, 11 Jul 2019 05:31:17 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:53316) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hlVQ0-0003pq-A0 for bug-guix@gnu.org; Thu, 11 Jul 2019 05:31:14 -0400 Received: from [10.138.132.0] (tor-exit.dhalgren.org [46.165.230.5]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 50a4d613 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 11 Jul 2019 09:31:02 +0000 (UTC) Date: Thu, 11 Jul 2019 11:31:04 +0200 User-Agent: K-9 Mail for Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Julien Lepiller Message-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:5884:8208::1 X-Spam-Score: -1.1 (-) 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.1 (--) Users tend to copy what they see in our code base, so it's not rare to have= to help them realise that if their last statement is (define-public =2E=2E= =2E), the file doesn't evaluate to a package=2E Running guix build -f mypackage=2Escm at least gives an error saying it do= esn't know how to compile #=2E Running guix package -f mypackage=2Escm returns immediately with no error = message and a status of 0, but doesn't actually build or install anything= =2E You can even try with an empty file :) There should be an error message, and probably even a hint=2E From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 11 17:23:10 2019 Received: (at control) by debbugs.gnu.org; 11 Jul 2019 21:23:10 +0000 Received: from localhost ([127.0.0.1]:38918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlgX0-00007P-DO for submit@debbugs.gnu.org; Thu, 11 Jul 2019 17:23:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlgWz-00007A-5I for control@debbugs.gnu.org; Thu, 11 Jul 2019 17:23:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hlgWu-00031L-1y for control@debbugs.gnu.org; Thu, 11 Jul 2019 17:23:04 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=51584 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hlgWt-0004Pv-HL for control@debbugs.gnu.org; Thu, 11 Jul 2019 17:23:03 -0400 Date: Thu, 11 Jul 2019 23:23:02 +0200 Message-Id: <8736jcp8p5.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #36592 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) tags 36592 + easy quit From unknown Sun Jun 15 08:57:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Julien Lepiller Subject: bug#36592: closed (Re: bug#36592: no output for guix package -f when the file evaluates to nothing) Message-ID: References: <87mueztnvl.fsf@gnu.org> X-Gnu-PR-Message: they-closed 36592 X-Gnu-PR-Package: guix X-Gnu-PR-Keywords: easy Reply-To: 36592@debbugs.gnu.org Date: Fri, 20 Sep 2019 07:43:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1568965381-624-1" This is a multi-part message in MIME format... ------------=_1568965381-624-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36592: no output for guix package -f when the file evaluates to nothing which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36592@debbugs.gnu.org. --=20 36592: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36592 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1568965381-624-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36592-done) by debbugs.gnu.org; 20 Sep 2019 07:42:38 +0000 Received: from localhost ([127.0.0.1]:56716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBDYr-00009P-Oq for submit@debbugs.gnu.org; Fri, 20 Sep 2019 03:42:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBDYm-000096-Aq for 36592-done@debbugs.gnu.org; Fri, 20 Sep 2019 03:42:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iBDYf-0004u6-VC; Fri, 20 Sep 2019 03:42:25 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=36736 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iBDYf-00089Q-FQ; Fri, 20 Sep 2019 03:42:25 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Julien Lepiller Subject: Re: bug#36592: no output for guix package -f when the file evaluates to nothing References: Date: Fri, 20 Sep 2019 09:42:22 +0200 In-Reply-To: (Julien Lepiller's message of "Thu, 11 Jul 2019 11:31:04 +0200") Message-ID: <87mueztnvl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36592-done Cc: 36592-done@debbugs.gnu.org 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 (---) Hello, Julien Lepiller skribis: > Users tend to copy what they see in our code base, so it's not rare to ha= ve to help them realise that if their last statement is (define-public ...)= , the file doesn't evaluate to a package. > > Running guix build -f mypackage.scm at least gives an error saying it doe= sn't know how to compile #. > > Running guix package -f mypackage.scm returns immediately with no error m= essage and a status of 0, but doesn't actually build or install anything. Y= ou can even try with an empty file :) > > There should be an error message, and probably even a hint. Fixed in f9c0400392843540a87985a67ffb9fb6e4dbc2fa. It doesn=E2=80=99t prov= ide a hint though. I thought we may want to provide =E2=80=98load*=E2=80=99 a type predicate t= hat it would check, so that it can say =E2=80=9Cgot #, expected =E2= =80=9D. However, we=E2=80=99d need a contract rather than a mere predicate to have = nice error reporting, so I decided to punt on this for now. Ludo=E2=80=99. ------------=_1568965381-624-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Jul 2019 09:31:22 +0000 Received: from localhost ([127.0.0.1]:37015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlVQA-0005Az-EE for submit@debbugs.gnu.org; Thu, 11 Jul 2019 05:31:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:54385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlVQ7-0005Aq-RL for submit@debbugs.gnu.org; Thu, 11 Jul 2019 05:31:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44999) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlVQ6-0004A3-SP for bug-guix@gnu.org; Thu, 11 Jul 2019 05:31:19 -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_05, RCVD_IN_BL_SPAMCOP_NET autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlVQ4-0003wx-59 for bug-guix@gnu.org; Thu, 11 Jul 2019 05:31:17 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:53316) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hlVQ0-0003pq-A0 for bug-guix@gnu.org; Thu, 11 Jul 2019 05:31:14 -0400 Received: from [10.138.132.0] (tor-exit.dhalgren.org [46.165.230.5]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 50a4d613 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 11 Jul 2019 09:31:02 +0000 (UTC) Date: Thu, 11 Jul 2019 11:31:04 +0200 User-Agent: K-9 Mail for Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: no output for guix package -f when the file evaluates to nothing To: bug-guix@gnu.org From: Julien Lepiller Message-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:5884:8208::1 X-Spam-Score: -1.1 (-) 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.1 (--) Users tend to copy what they see in our code base, so it's not rare to have= to help them realise that if their last statement is (define-public =2E=2E= =2E), the file doesn't evaluate to a package=2E Running guix build -f mypackage=2Escm at least gives an error saying it do= esn't know how to compile #=2E Running guix package -f mypackage=2Escm returns immediately with no error = message and a status of 0, but doesn't actually build or install anything= =2E You can even try with an empty file :) There should be an error message, and probably even a hint=2E ------------=_1568965381-624-1--