From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uD9IOB6tJ2LumQAAgWs5BA (envelope-from ) for ; Tue, 08 Mar 2022 20:23:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4OesNR6tJ2K4+wAA9RJhRA (envelope-from ) for ; Tue, 08 Mar 2022 20:23:10 +0100 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 aspmx1.migadu.com (Postfix) with ESMTPS id 945EECE9F for ; Tue, 8 Mar 2022 20:23:10 +0100 (CET) Received: from localhost ([::1]:57340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRfQL-0001cy-Fa for larch@yhetil.org; Tue, 08 Mar 2022 14:23:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRfQE-0001cq-PF for guix-patches@gnu.org; Tue, 08 Mar 2022 14:23:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRfQE-0004yQ-H6 for guix-patches@gnu.org; Tue, 08 Mar 2022 14:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRfQE-0004P0-7f for guix-patches@gnu.org; Tue, 08 Mar 2022 14:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50238] [PATCH] build-self: Try printing nicer error messages. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 08 Mar 2022 19:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50238 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Maxime Devos , 50238@debbugs.gnu.org Received: via spool by 50238-submit@debbugs.gnu.org id=B50238.164676736316880 (code B ref 50238); Tue, 08 Mar 2022 19:23:02 +0000 Received: (at 50238) by debbugs.gnu.org; 8 Mar 2022 19:22:43 +0000 Received: from localhost ([127.0.0.1]:57956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRfPv-0004OC-8P for submit@debbugs.gnu.org; Tue, 08 Mar 2022 14:22:43 -0500 Received: from mail-wm1-f54.google.com ([209.85.128.54]:36670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRfPt-0004O0-Jp for 50238@debbugs.gnu.org; Tue, 08 Mar 2022 14:22:41 -0500 Received: by mail-wm1-f54.google.com with SMTP id n31-20020a05600c3b9f00b003898fc06f1eso2033325wms.1 for <50238@debbugs.gnu.org>; Tue, 08 Mar 2022 11:22:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=cG/hrM3P3whYHXlfjcHWPyrvRuh5m66L41jMUzVCONI=; b=g2eCINaSIgZxC8VuNtjXPZDP0+8kVfaz1dEUymZo/h+uFaBw90ldi4oIBBJ4OJUWRb vBAT3pqNwl8kIjBmCXH5rhdti1xBUCej59w6RR+mxZTMyo3XTodV2/zgB/yc26gGUnqF M0sDeuwzLdkZ5Z0xKAvmMgKyc7xuXrdAHZszGa0LzRbgisOdpFrn5q+NC6IlGQGY5FIe v1MZ7BwwGYsOzgLl9sZ3VCItQB1bhrOVEWXbHdBy16Xoq/QZAJO+/QzdLbf6cRbn93cR y4O/ogbZNvDrGWYeFPZQ7D1z+njmTRN+BUZvbz44WT+fu/Urz1alUmp0Nnt0f3HYNWKN voww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=cG/hrM3P3whYHXlfjcHWPyrvRuh5m66L41jMUzVCONI=; b=oDOADQMxky677HEn8w/48nDDwimPeW8u3ikKUawqfQ+3vtLN57NJsZC16xpIXO9wFO M59hUuxHEWlIsF36B31bQnXuUyhAGdwZmLu/zqTFns+ZJk0EY/mmfeenbIyKuTMeAOYH TmB7issKgQguMscSpkEjDy+bBXt43bUyXcWh/PnETuLTWAFkxwrVNJ/eDW3GMuaO6+Iw 8vL7P6mpQff6Bk2gemzOmKb7jqirInPHK3ilgn30QqUKybIrgqF70scW7iH/9cFlK6AE PGpjZ89mUnwggrc3KI8/y9XJnxMXRNxnp6OTTxFToIt/L82H0X4tzTJ20wDgk71Q6zKm U+cg== X-Gm-Message-State: AOAM532yqhZmjNUB0XdNmj0Q6lvQUWXedb/tzUrit9MyYixLwEeTqYn7 fgP4zz7FILk6hmysYQYuU7lhP2umX4A= X-Google-Smtp-Source: ABdhPJxsnvT8G2KeqwLWlaERmPA71YJTuHGojDZKv/mcE1zt0ZIizFYnYhfFqi7HggsPavJbJ0PxiA== X-Received: by 2002:a05:600c:1d08:b0:381:6eda:67d1 with SMTP id l8-20020a05600c1d0800b003816eda67d1mr4949858wms.88.1646767355776; Tue, 08 Mar 2022 11:22:35 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id i74-20020adf90d0000000b0020373ba7beesm1365873wri.0.2022.03.08.11.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 11:22:35 -0800 (PST) From: zimoun References: <87r1denq09.fsf@gnu.org> Date: Tue, 08 Mar 2022 20:22:32 +0100 In-Reply-To: <87r1denq09.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 24 Sep 2021 13:59:18 +0200") Message-ID: <8735js45c7.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646767390; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cG/hrM3P3whYHXlfjcHWPyrvRuh5m66L41jMUzVCONI=; b=gXPloLiRxZbK3DoEyoj5YzsJxyu6lgGx5Uwj5/UrBfZ5VVEnL6w1/gRTqCwX3oooZTzUtS /Uu5EQI4vtL/4ILwS0+5F87HjPj5KwQVA4Aj10LfGAKNeOhYNsgZM+MiRfJm1ZTSX6DakW dmPOoL8W20jZkpvbcu9W3057rLWY4B2CDk6qr282PjXvpKECWwjTyAI0b/YW3moGuHuSDV S7yZs21zgnm8SLqCIXHF+vHcLMU0eMvOKR0CODZSi9qSO/xLYdQW8Y7z5qltv1yJjR2o1b s7zcgKkDmloU3EF/SnaUKMUIVfMuxW2JoK7EhTARxakBL5k6wocqZrCxEm4AQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646767390; a=rsa-sha256; cv=none; b=C2lwyZ0URTNIeFSxqWEKJfVmnoK8C7HBiIjFYD6o+E8fXpolvVNh+/P1pTp1FIfTC0gOhP RuvxgaLSMKnC2omt6PmFsDYrmqbDRCBZIL9Uwf1Uju9FKUabnFgE6dRS+Y6pICk/kJH0KF 2lJGFoNuPF+X6mnScCnQgwBvdJRMY2ogXQup6mm7/DPc13WVUrEFJmHKAdI2uwiH25ZHK4 RKcR2DzT7EbEq5SrPpIvbxA/xh4YK/TTXaA+phQ8j+Rdge0UPtOqPPwxolCLUOnWmkpc35 mscvtcMleAqgSuipduq1PhKKRdDueTqZZJV/ugWuykLgyt90vNE6m+8/Y/GRUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=g2eCINaS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=g2eCINaS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 945EECE9F X-Spam-Score: 4.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2nLwpWS9t2mm Hi, On ven., 24 sept. 2021 at 13:59, Ludovic Court=C3=A8s wrote: > I sympathize with the goal but unsure about the implementation. On one hand, I agree that the import of '(guix ui)' here feels "hum, it seems an incorrect location", but... > To me, compute-guix-derivation should remain as simple as possible and > it shouldn't take care of UI concerns. Having said that, I don't know > how to address the problem above while sticking to this principle. ...on the other hand, where 'build-program' is called, i.e, 'build, there is: --8<---------------cut here---------------start------------->8--- (format (current-error-port) "Computing Guix derivation for '~a'...= " system) --8<---------------cut here---------------end--------------->8--- which is UI, no? Idem for the message "You found a bug". Well, I am unsure about the addition of '(guix ui)' and by 'with-error-handlng' in 'build-program'. However, maybe the exception handling could happen in the 'build' part. WDYT? Cheers, simon