From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 11 05:31:22 2019 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 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 debbugs-submit-bounces@debbugs.gnu.org Fri Sep 20 03:42:38 2019 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. From unknown Sun Jun 15 08:53:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Oct 2019 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator