From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GFbdLP9uPWSYUgAASxT56A (envelope-from ) for ; Mon, 17 Apr 2023 18:08:31 +0200 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4J/uLP9uPWQhvAAA9RJhRA (envelope-from ) for ; Mon, 17 Apr 2023 18:08:31 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id E01947312 for ; Mon, 17 Apr 2023 18:08:00 +0200 (CEST) Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=TVILkEBm; spf=pass (aspmx2.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681747680; a=rsa-sha256; cv=none; b=ad8nA0bk3p55PUinvkq4Vgb5cdDVOPpDpynhQLLH45BJkwMRm9tKnqTVE3x4BPL6iWCl0n /G/Llcmfn0ckIJrB+uVqSJODDKp8qu2g6/y682jn8o+jbeaBAny8fvlCLBJnAatxrF4bfb psf720qmkKSqVU0Of726w/7b9EwXvD8Mf9PqiWKGEvLC1PJPNd3BnLTR4UpzZuNMdSf+8M CZp1LmkvaYVb+/lSODorhb0CvIzrFuOhiPqZGwZwduqIgWdWhVWXbSbsf0F1xs14vgdXbd N8Elt5lOQB03fhLyZGYosCZK9bexQRmSVPf+L9yExkg0bl9fMIaGknj4bjuCtg== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=TVILkEBm; spf=pass (aspmx2.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681747680; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zsN2wNd0loqRl+C++oAGy0kV48sw0wpHoPhaE4vDw/8=; b=XwYwn1kFqcKMIUr8tPNHVzX7gYWIekcSnHx3S3ZMwFtis8rb4yfY7UzSX8eQ6A/qy5ZPvW CPD331bM7jMpDPUEKj6bkOOoa7tTxSF2vUnP8fcWSzcfeZbEyCEYuQQSnkZEXe81C1xtN+ mbC8tVvXeEUe7me/vK+o/2+jq88KTZtfznypeqx2e4TpjgR0gLmjfzi8WWZ2t1wU9L257f 2dmTrVp18nTRplao+ZkL5APPhQN61aYIGUFYS1EjcMZ/ZbAFKpZ3kcI2kROKn/vXyRiCLq PbPlhPttqcO7gIEMGgXCt+6iRc/7MqP2TVj15e0Qdn/3v6QNeBfJaCOQE2Yf0w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poRO7-0007lB-Dp; Mon, 17 Apr 2023 12:07:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poRO5-0007kq-P0 for guix-devel@gnu.org; Mon, 17 Apr 2023 12:07:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poRO5-0002XA-Gk; Mon, 17 Apr 2023 12:07:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=zsN2wNd0loqRl+C++oAGy0kV48sw0wpHoPhaE4vDw/8=; b=TVILkEBmuzEbWEFt1RnN Z22C9Zu0xwEtnZX2RnhFsggupOlMq645hDznF5F2LmoLmLOup11/2I/s2axNYH/fciZWj2bOT/S58 fmwv0B9oiLX/pUOn2z0KUdC2H3sfaoPRzyx7BNdaSKYt0HYefJV3Zxr6kPzH3gG70jJxYudfIzBxZ SJ6sEmcgsbTFMElfrW55jAm5raGjSVZsDwP+mmE1BZxKIc0cBqNTAroRIOGk+nrk5FcN19QzeRE0Q YtNqOkhin5P4lIRISLwdBBHFRE2GAlQHefIeJ5Xd1mozPUxoFQXcdh6IQXU74aQOYhcPC2H+NNNzB jlkcLy4jpquFTA==; Received: from [193.50.110.118] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poRO4-0005Xg-Qv; Mon, 17 Apr 2023 12:07:29 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Vladilen Kozin Cc: guix-devel@gnu.org Subject: Re: guix system container and friends fail to report intermediate errors References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 28 Germinal an 231 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour de la =?utf-8?Q?Pens=C3=A9e?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 17 Apr 2023 18:07:26 +0200 In-Reply-To: (Vladilen Kozin's message of "Mon, 27 Mar 2023 14:52:26 +0100") Message-ID: <87sfcycx1d.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.72 X-Spam-Score: -7.72 X-Migadu-Queue-Id: E01947312 X-Migadu-Scanner: scn1.migadu.com X-TUID: zJhTWjokStgP Hi! Vladilen Kozin skribis: > Hello. Is it possible to get better error reporting in the following > example? > > $ sudo guix system -K -L /home/vlad/Code/fullmeta-guix/channel container > os.scm > > And our os.scm imports some services defined in our channel above. Should > there be an error in one of them, however, the stack trace only talks abo= ut > inability to find that service symbol but otherwise fails to report any > errors that may've happened when loading modules from our -L location abo= ve. > > Case in point. In one of the modules, I habitually used Clojury syntax and > wrote: > > (define foo [1 2]) > > (define foo-service > (list > (shepherd-service ... #$foo ...))) > > (define foo-service-type ...) > > Running the above OS derivation reports: > ``` > Backtrace: > In guix/store.scm: > ... bt here ... > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > error: foo-service-type: unbound variable > ``` If I understand correctly what=E2=80=99s happening, the module file that de= fines =E2=80=98foo=E2=80=99 and =E2=80=98foo-service=E2=80=99 fails to load with = a =E2=80=9CWrong type to apply=E2=80=9D error. Consequently, you end up with that =E2=80=9Cunbound variable=E2=80= =9D error in your OS file. Do I get it right? Thanks, Ludo=E2=80=99.