From debbugs-submit-bounces@debbugs.gnu.org Tue May 03 12:36:37 2022 Received: (at 55242) by debbugs.gnu.org; 3 May 2022 16:36:37 +0000 Received: from localhost ([127.0.0.1]:40842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlvVt-0005aa-FX for submit@debbugs.gnu.org; Tue, 03 May 2022 12:36:37 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:34540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlvVr-0005aQ-Gr for 55242@debbugs.gnu.org; Tue, 03 May 2022 12:36:36 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id SGca270014UW6Th06GcaV1; Tue, 03 May 2022 18:36:34 +0200 Message-ID: <724a0beb49e2854b5efe1a5069f11911b616cad9.camel@telenet.be> Subject: Re: [bug#55242] [PATCH 07/10] guix: import: go: More resilience wrt network errors; add logging. From: Maxime Devos To: Attila Lendvai , 55242@debbugs.gnu.org Date: Tue, 03 May 2022 18:36:31 +0200 In-Reply-To: <20220503114301.9524-7-attila@lendvai.name> References: <20220503114301.9524-2-attila@lendvai.name> <20220503114301.9524-7-attila@lendvai.name> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-MFLCwRFDzsOWSl83oeah" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1651595794; bh=VPYN3fWrKH7Xh1NgijmBXKV+/7Ne5HxZJg6uhCFhv+A=; h=Subject:From:To:Date:In-Reply-To:References; b=Q6C1D58vDYt3rt5NWfT/cxUqUHoOuvCRt0VaWe7uj8ZKeIkhf1ct9zZxWyLTAaUjj XYnuDsxrWMU+QIzco56bvB4NdWV+3wIU2Ag6QwY8snb61TynHwKp3csT33fxOF0NG3 VWs/IhZKKQKFd7W95TGrNciDQju+5I1oU62GNpnZcE/WxTkKwS1JnLxjqj7eslv4pE lInz2wcdghHCurot7jr59+dRI53oyVHTZBoCLSOMdb745MwFnnsz/ehTVWZ7xh612T YULfhwQAY9k+F0Vp8UOQgJzsv9j2m/Q993/mLZuPHdGzzjSFf5qjX+rV6p3oNlYSNv wa1Cq39dr96Kw== X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55242 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.0 (-) --=-MFLCwRFDzsOWSl83oeah Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op di 03-05-2022 om 13:42 [+0200]: > * guix/import/go.scm (go-module->guix-package*): Catch exceptions and ret= ry in > case of network errors. Add ability to enable printing a full backtrace w= hen > debugging. > (go-module->guix-package): Tolerate the inability to fetch the synopsis a= nd > description. Ok, but couldn't this be done more generally, for all importers using HTTP? E.g., could we have a variant 'http-fetch/retrying' of 'http- fetch' that automatically retries a number of times? Then the retrying functionality could almost trivially be used in other HTTP-using importers as well. Greetings, Maxime. --=-MFLCwRFDzsOWSl83oeah 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+4iGRcl7gUCYnFaDxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7jaAAQC3g7zni1ahy4ss9v4jnTwxHhYU JckLdSa6gKTTY+BsywD5ATKyWslMVKLID30o/t4mRGv6VxO1N+oVwxa1QN4BUgI= =8yVk -----END PGP SIGNATURE----- --=-MFLCwRFDzsOWSl83oeah--