From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WMviDTVxl2FcQwEAgWs5BA (envelope-from ) for ; Fri, 19 Nov 2021 10:41:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aM6DCTVxl2HJUgAAbx9fmQ (envelope-from ) for ; Fri, 19 Nov 2021 09:41:09 +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 D5B5E17F2F for ; Fri, 19 Nov 2021 10:41:08 +0100 (CET) Received: from localhost ([::1]:44070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mo0OJ-0000Ta-Eq for larch@yhetil.org; Fri, 19 Nov 2021 04:41:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo0OE-0000TK-Qf for guix-patches@gnu.org; Fri, 19 Nov 2021 04:41:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mo0OE-0000pa-Fw for guix-patches@gnu.org; Fri, 19 Nov 2021 04:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mo0OE-0000KK-Dg for guix-patches@gnu.org; Fri, 19 Nov 2021 04:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51091] [PATCH v3] guix: opam: Do not fail when refreshing. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Nov 2021 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51091 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Julien Lepiller , 51091@debbugs.gnu.org, Xinglu Chen Received: via spool by 51091-submit@debbugs.gnu.org id=B51091.16373148311199 (code B ref 51091); Fri, 19 Nov 2021 09:41:02 +0000 Received: (at 51091) by debbugs.gnu.org; 19 Nov 2021 09:40:31 +0000 Received: from localhost ([127.0.0.1]:38041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mo0Ni-0000JH-Sg for submit@debbugs.gnu.org; Fri, 19 Nov 2021 04:40:31 -0500 Received: from mail-io1-f49.google.com ([209.85.166.49]:36780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mo0Nh-0000J1-0d for 51091@debbugs.gnu.org; Fri, 19 Nov 2021 04:40:29 -0500 Received: by mail-io1-f49.google.com with SMTP id e144so11982869iof.3 for <51091@debbugs.gnu.org>; Fri, 19 Nov 2021 01:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TWCDPUphQo38B4nWDcZMP0OxL4Bx1EUwydX6E9V924s=; b=PzJPruZEh3JLNE04uDPDkSSn/Sjc+285dl39Xx1AJOdd5CU84mIBcGc4CvpExe2zUT ZDRMCMrxUaQpUVlZ+u/35PNRnh2hmYC9UnTaCHpm1bORw68DXcOL2v6WSQdoIuWhFzdJ 8zhIjDUfe9I2sdpdZ4JpXUOQkpAc1QkgSeijQ14zR6L/SOfmUAEyXwwU2h0QoTC+Dc1m CwWwP06uC1Joox6Cana09r2z4ZRp7Ml7hUZhf6XdGnB1jnweJ6kx4VzQknU9REG5/2w6 BswTbLtDeY0SAXzpfk7DP9sKnMg4qJC/sle2r2x6ZDp6R5EhAVR0xQeAwP9/kJJbGwBQ 5lgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=TWCDPUphQo38B4nWDcZMP0OxL4Bx1EUwydX6E9V924s=; b=wSKMdZgGZGYNBlaSWc9djpSso6Js51SIHyfLTHCp6L0fRpU9jSkpvY+7DDZn8oajcz Jm9X2qijOno7HS9kavbfmhCmCO9VpGeNcPoe/2H6sYY7h0hoQq1y2z3uRyOS6kDXP6JF cVNU8g8VhNCGBcksop1em9G1eKxpzFcryng2f0CF6lZihg9NqZho7UdKaVaWBOUD/+oY VwBgXJ9y79Y2Ol9sJ+e4RKkx2J4zBeveC1UBFyWtGR9O1YWECwodgZLYWEbxcasDcLx6 BD195l6N5UgPMlrls9WSrLjafjT1tXJZVRi+jnPt/HxhiPfWt/skVyyx1PSfPAGnDt82 P7mg== X-Gm-Message-State: AOAM531G8cRqDNFrE8F9mD3o/LqWHYFVWcK/SjJmgRZclRnpyHmabCNU 9tOBsepbY/CHdZJS75qNi6MARozRteYKTF/78Ik= X-Google-Smtp-Source: ABdhPJy0mFzxTkFH2jzeaWD73rT00nyRIga6KqRbxVuJ9EgJ9cnEW2fiolGbDT+aN2MyNpPyOU6PGiuYIQOD/XoafaI= X-Received: by 2002:a05:6638:2bb:: with SMTP id d27mr27227427jaq.66.1637314823278; Fri, 19 Nov 2021 01:40:23 -0800 (PST) MIME-Version: 1.0 References: <20211008050310.407d6b23@tachikoma.lepiller.eu> <87y272lepg.fsf@yoctocell.xyz> <871r4nrc9t.fsf_-_@gnu.org> <20211016041009.5b4ddff0@tachikoma.lepiller.eu> <87sfwybuc7.fsf@gnu.org> <20211119021646.03e85542@tachikoma.lepiller.eu> <87czmwo68f.fsf@gnu.org> In-Reply-To: <87czmwo68f.fsf@gnu.org> From: zimoun Date: Fri, 19 Nov 2021 10:40:11 +0100 Message-ID: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637314868; 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=TWCDPUphQo38B4nWDcZMP0OxL4Bx1EUwydX6E9V924s=; b=c8pczhKVNkIyDtOFaMIMfld4wHqFlhwx/cRVx2R7EQjoyjBLI2ZaG8epTOvpZ9in9lHLpP 9/Bc7GhQumdTlKR0lStduCYqTJCM9DI3QRi98KO8klVAfo2GqgBF7Bkh+o98koeT0BYoNh s67ZpebEvA+FnpqPzj1dwCAM6pcmtdvBVW7efU+fnM3Z9vKUZ2N/yyGj8ZBTa7fAau/dSP feG/0KC0ymC386A4NDAH6NPm5NZElMsVt2lL5/x63XRydElc0fO/7wEq8G4k4A4neLFFSb 9+AAWvepKUtRfjO8Elmcz0FhIy6M1LhIkwyXRxboOYauqR7IqSXk8pUjQkyFCQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637314868; a=rsa-sha256; cv=none; b=af6T2H/skY1LLx+hWA5yAFb2CKL3oTJmrOvS6zdo9OCYeJfrVGW5lRWmIKh/Pd0lMv/2WA X9c4+CymSttup2G28JvNfPvYYbbTdVHrIpGsYnr6Bv6hibvThnSBaVAP483wYPzBbjvwkI 8nrIAGwz79qGdTVP/0AkioanbvUV2i3EOSyHeisfdiNnyN6iPDG1MD0JKUTqGxqhN1XCTT gzWCJ7d/wqZYsYAnaOYl2pEWgi1pS8FBYDneQX/R1y6AHD2bbh+6vl35Z0z9EnkdIeVBkU oeSO9EDmDumrYnXI3PiYOfxiMR7U7/aPXi9UphlFftPP2+1AxP1hTRoBEVyo3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=PzJPruZE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: -1.76 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=PzJPruZE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: D5B5E17F2F X-Spam-Score: -1.76 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4pGbiANYNUb+ Hi Ludo and Julien, On Fri, 19 Nov 2021 at 10:17, Ludovic Court=C3=A8s wrote: > I=E2=80=99m fine either way. I think there=E2=80=99s value longer-term i= n having > structured exceptions in importers, though. Yes, I agree. For instance, as discussed after this old quick fix [1]. Then I did some pair programming with jeko to have a v2. The idea is to have a common exception mechanism for all the importers. Instead of case per case and scattered implementation through various importers (proposed patch for opam, another example guix/import/elpa.scm using &message etc.). All the importers should share the same interface for handling exceptions and errors. Well, it has never seen the light because time flies so fast and because at one point, one needs to sit down and unknot all; personally, I have been a bit lazy for completing the task. :-) 1: > Julien: your call! I agree, as mentioned [2]. :-) 2: Cheers, simon