From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YF9sH2PoUmHLegAAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 12:03:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yOIRG2PoUmHwMAAAbx9fmQ (envelope-from ) for ; Tue, 28 Sep 2021 10:03:15 +0000 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 15DDE2ED3C for ; Tue, 28 Sep 2021 12:03:15 +0200 (CEST) Received: from localhost ([::1]:46550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV9xC-0001LM-6D for larch@yhetil.org; Tue, 28 Sep 2021 06:03:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV9x0-0001Jj-FD for guix-patches@gnu.org; Tue, 28 Sep 2021 06:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mV9x0-00048R-4l for guix-patches@gnu.org; Tue, 28 Sep 2021 06:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mV9x0-0007q0-25; Tue, 28 Sep 2021 06:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50814] [PATCH] guix: git-authenticate: Also authenticate the channel intro commit. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 10:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50814 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Attila Lendvai Cc: 50814@debbugs.gnu.org Received: via spool by 50814-submit@debbugs.gnu.org id=B50814.163282335630097 (code B ref 50814); Tue, 28 Sep 2021 10:03:02 +0000 Received: (at 50814) by debbugs.gnu.org; 28 Sep 2021 10:02:36 +0000 Received: from localhost ([127.0.0.1]:43931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV9wZ-0007pN-Q7 for submit@debbugs.gnu.org; Tue, 28 Sep 2021 06:02:36 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:55306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV9wX-0007pC-6o for 50814@debbugs.gnu.org; Tue, 28 Sep 2021 06:02:34 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by albert.telenet-ops.be with bizsmtp id zN2X250060mfAB406N2XMB; Tue, 28 Sep 2021 12:02:31 +0200 Message-ID: <7f921c26c445cfe034ad73bfbd7a9b45e810d673.camel@telenet.be> From: Maxime Devos Date: Tue, 28 Sep 2021 12:02:23 +0200 In-Reply-To: References: <20210926101928.3877-1-attila@lendvai.name> <2b0173cc9809ab1e806bf0061fc28a9a85dda6e0.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-lK3AFsR2GbSbojWApjCh" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1632823351; bh=7fk4nEnJmsGOX4sQyFMqJRBtJSi14BR/2ZASpVgFltE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=YVjQd40wjfrV5VhZWls6KYXY3FoaymJ6t5clwK6Ikp3OEaCTNmMtQqelcr+KRWP8J v8tjJawkju6rEYYYzfXlu0Ii1dLyRRp8fdHgeLG22nQEUGsTAhGhPB4WNO9QjKkEGm 9vdZxMKQz30xYeR6RWr6lEZBnVOPbyZvPpZ7fgd9kdRaO+BVEPBf3WAn06I1MxFNud TZmjJtRk7bi8xSUcst1+D/B9S0ZPenrXuAi/OkPfPOBNfwni/rywyF0cNSh563LgFY z6MJyiLnpZK/zdLLK5m3ErjepnATzVFRUTGA1vn2R9yfPgCM1sdnRN/AIHstTzFfHr qQhIZNeMA9Svw== 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632823395; 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: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=7fk4nEnJmsGOX4sQyFMqJRBtJSi14BR/2ZASpVgFltE=; b=jyicJ7x+8gxmhFCVTSKNt/Bs8fBt3N9Q8KsZyk+Wa3KpWumNb7D3Z2wXWukTitCwhuTMgB 2v4mJcKGksw86iRbZWUY1SOQl2DZzNeyctmj06bclsyjZYo0emUY1aAxVzB2SXwAAefIuQ sL5UMWHnjBrOxkuGSXNq/BgpMvQSPPu0CodlgUQhNDdPSHGyX8JnIfxITgYkfsS6s7aj/w zeeAAwMfEG9NAcCyQc5ILxbSKOGjhAc5iUjPWw+hUfE0l0sESq/oz0ZYKMuC0puiYWjUw+ tT34vrvpua1JuLwXO1KqAnPqnYQUlYm9vMYNMMEYd1MVTNQWaszZXHcG5+ecWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632823395; a=rsa-sha256; cv=none; b=H67CVXaccTRhESGtsLndS/UNCMdanDpUX9ItvQUMmvkmXM06ZoUlJoWjexlgp0NZ0s2imO GG6cooKj71hYNRj9kwB8IO1jAklTNW5DyEdw2BquDGzk+ZrqgRyyhpbUKjRbz0WYY/uLnH zxpRvPV927SisMn4Bhppl0R+SxyEihZ82d6DU/AaaEwDXj7AHJsLFB0Nxn9BtAIrS2PdJr Icu1BM/aeCzgS+SgUq1yHCmBQjHhv4sbmMY3BozNcYKZX07x6ubiceF1/ilyhKwye8dCrM kpp1jKuEBg61Kero2EXwwjz54GAPHH0WgLEvLD9KYE7CSoijLymh+ZjM/CgKNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=YVjQd40w; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=YVjQd40w; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 15DDE2ED3C X-Spam-Score: -3.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2Wquck9/8LKJ --=-lK3AFsR2GbSbojWApjCh Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op ma 27-09-2021 om 18:45 [+0000]: >=20 [...] > using `(warning ...)` will just print something to stderr. >=20 > i was hoping to raise a continuable condition of type &warning, that i ca= n even check for in the tests, > but i have failed to put that together. the scheme/guile condition system= is a bit messy/convoluted. Technically, Scheme supports continuable exceptions with 'raise-continuable= ' and with-exception-hander. E.g., the following Racket example: (use-modules (rnrs exceptions) (rnrs conditions)) (with-exception-handler (lambda (con) (cond ((not (warning? con)) (raise con)) ((message-condition? con) (display (condition-message con))) (else (display "a warning has been issued"))) 42) (lambda () (+ (raise-continuable (condition (make-warning) (make-message-condition "should be a number"))) 23))) prints: should be a number =E2=87=92 65 (from https://docs.racket-lang.org/r6rs/r6rs-lib-std/r6rs-lib-Z-H-8.html#no= de_idx_378) works in Guile You might need to modify 'call-with-error-handling' in (guix ui) to recogni= se &warning though, such that the &warning exception will be properly handled. Alternatively, you can use the procedure 'warning' from (guix diagnostics). To detect the error in this case, you can use parameterise, guix-warning-po= rt and procedures like call-with-output-string. You may need to reset the loc= ale first (with dynamic-wind?). Greetings, Maxime. --=-lK3AFsR2GbSbojWApjCh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYVLoMBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7o1fAP4pI9fNojskAkSV/vzDIlIvl9Wl MPxbt8VHva965NcEjgEAlEMvuk7E/od4vvL6lQxqzIE+XhzhFrDCd2YAVjmWxQY= =sQuQ -----END PGP SIGNATURE----- --=-lK3AFsR2GbSbojWApjCh--