From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 28 06:02:36 2021 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> Subject: Re: [bug#50814] [PATCH] guix: git-authenticate: Also authenticate the channel intro commit. From: Maxime Devos To: Attila Lendvai 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50814 Cc: 50814@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: -1.7 (-) --=-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--