From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id /0OhLjdEcGB/tAAAgWs5BA (envelope-from ) for ; Fri, 09 Apr 2021 14:10:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uCmIJzdEcGD6FgAAB5/wlQ (envelope-from ) for ; Fri, 09 Apr 2021 12:10:31 +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 40D072B889 for ; Fri, 9 Apr 2021 14:10:31 +0200 (CEST) Received: from localhost ([::1]:41230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUpy2-0003j6-8j for larch@yhetil.org; Fri, 09 Apr 2021 08:10:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUpsk-00008Z-VN for guix-patches@gnu.org; Fri, 09 Apr 2021 08:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUpsk-0008Uy-My for guix-patches@gnu.org; Fri, 09 Apr 2021 08:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUpsk-0004Xv-Er for guix-patches@gnu.org; Fri, 09 Apr 2021 08:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47670] [PATCH 0/2] Add updater for packages hosted as SourceHut Git repositories Resent-From: =?UTF-8?Q?L=C3=A9o?= Le Bouter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Apr 2021 12:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47670 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen , 47670@debbugs.gnu.org Received: via spool by 47670-submit@debbugs.gnu.org id=B47670.161796989817461 (code B ref 47670); Fri, 09 Apr 2021 12:05:02 +0000 Received: (at 47670) by debbugs.gnu.org; 9 Apr 2021 12:04:58 +0000 Received: from localhost ([127.0.0.1]:49226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUpsg-0004XZ-Iy for submit@debbugs.gnu.org; Fri, 09 Apr 2021 08:04:58 -0400 Received: from mail.zaclys.net ([178.33.93.72]:44655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUpsd-0004XI-QP for 47670@debbugs.gnu.org; Fri, 09 Apr 2021 08:04:57 -0400 Received: from [192.168.1.115] (lsl43-1_migr-78-195-19-20.fbx.proxad.net [78.195.19.20] (may be forged)) (authenticated bits=0) by mail.zaclys.net (8.14.7/8.14.7) with ESMTP id 139C4nSL045685 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 9 Apr 2021 14:04:49 +0200 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 139C4nSL045685 Authentication-Results: mail.zaclys.net; spf=fail smtp.mailfrom=lle-bout@zaclys.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaclys.net; s=default; t=1617969889; bh=M972Edvi0uTUn3q1V+08Tzp1murwO508oNytKaKOe4Y=; h=Subject:From:To:Date:In-Reply-To:References:From; b=ThGx1HnJXtjGxQVT8YxMPc1+yd356FkmnMPWqDcj09CE+TSF3rXJLZYeVfDyUKh1S ukRIRzPD5Pn0vxFcIP7i2xtbQPFrTA22TbMLKS40UsTD7t/9dM00DDcUZMtuj57t/b 2DA3D7Cliqr1cINsU/Jg5kpE+GGhgyGm2POZoDNw= Message-ID: <2513bc7a1e52872be1cd1b8ecde11e21a6f613e0.camel@zaclys.net> Date: Fri, 09 Apr 2021 14:04:48 +0200 In-Reply-To: <87im4vwtyd.fsf@yoctocell.xyz> References: <6b8ddedae2addf01efa57dcf3a6723bed81bf076.camel@zaclys.net> <87im4vwtyd.fsf@yoctocell.xyz> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Zxybb9R5epo2A89y2zIT" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 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" Reply-to: =?UTF-8?Q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches From: =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617970231; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=M972Edvi0uTUn3q1V+08Tzp1murwO508oNytKaKOe4Y=; b=twHkq89e6FYYT3SWPitgN3ef13odQGfRVV6uu+7AeIHYVSHOl6amRiyrRSG3qN+4xeU7DG 1tGFW+23cJn8kUCbjmMtd+2t+pGBlTEjkWBIciNUiRl4Gg/9ie43LVsasn4QfmABMFE/eE gj0VlF03ITQ7GAxykGZBpCBdZRR3IVVpEIBOt4fhjIXjx8zSry5CyZ+SWmOd0kPEXYK/9Y k/Y0YDuIwCLOIddXIVOyvI8eLS4oNeZwJC3qcUgmWUEll1sbXsmL+2NEhPKj4rOAgE+zd/ 37L5m0pbKx/PgSLPqntPZ5Aw4mPNLKpYcYSyc6aHe2KSLI9kzmOBIpap7AfRkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617970231; a=rsa-sha256; cv=none; b=fmp4C7urpXY/MwMpnmfDPApYPXlJnZbBwQCnqptw5MC+VQDB3S2zRzmR1Sj5IVVoK0qjTX XfPRq29RYKaxT29u5S7n6tRuMpeK4CSpU2R+Z0wmemzSGFmH6DwiZIeErBMnLzDndd8EcU TprYhD/G/Bt2M874eOuHu2nF7FIBhCwiOQnzxIKeZC7wicAZC6caSEFroL8WenBu9q8MVl TXdkL6Pr5P1IyJ3EKEYZxT/b9gCJmhfUsC0/O/dKM3Jg1C6xI5L2FC1W+Lr7a/sHlVqHjO GPJJbCxGlwkREo/VtwE31LgWct3ccvXzf+ncMbIdGErWq4A0ZUM0yyRgsFkUTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b=ThGx1HnJ; dmarc=pass (policy=none) header.from=gnu.org; 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: -5.04 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b=ThGx1HnJ; dmarc=pass (policy=none) header.from=gnu.org; 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: 40D072B889 X-Spam-Score: -5.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2uUXVRDio0px --=-Zxybb9R5epo2A89y2zIT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2021-04-09 at 13:58 +0200, Xinglu Chen wrote: > All the forges have different URL schemes so they would have to be > hardcoded somehow, e.g. SourceHut uses > https://git.sr.ht/~user/repo/archive/TAG.tar.gz, Gitea probably uses > something else, etc.. Maybe we could just clone the repo, but that > would use more bandwidth, and it could get pretty slow for big > repositories. >=20 Is that an autogenerated tarball? I am under the impression that usage of those is banned in GNU Guix, and that there's a lint pass for it. What do you use these autogenerated tarballs for? Is the 'ls-remote' command not enough to replace the version and hash? GNU Guix uses shallow clones (AIUI) to save bandwidth, do you need this to generate the hash? I encourage you use the same shallow clone mechanism here, so it's more generic and not specific to Sourcehut. > Adding a property for the tag prefix and suffix, and a version > separator > would be a good idea. Right now it only supports "v" as a prefix and > "_", ".", and "-" as separators. What do you think about that last idea of matching versions in tags with ANY separator and ANY suffix and prefix? That should work fine, right? I can't think of a case where it wouldnt, but please do share one if you do. Thanks!! L=C3=A9o --=-Zxybb9R5epo2A89y2zIT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEFIvLi9gL+xax3g6RRaix6GvNEKYFAmBwQuAACgkQRaix6GvN EKZpexAAk/t6gr+4F2H2gDjz+F9yCBl5qhstWkHIjnXJbwARuD7G61vdyo+2ZszO 2xjcXJj8lAUInjrAER6PixwwXZXzD6gMYhLYfqpbI7xWh36snDVF7pWcGW0bJyfM eL03ZlL+pKWq0d5PfnpN/naSajmWWSTrshn9d5Jaqld+tdVHbvyYj6Jap3h1N9St 61xQlt2eKNoGbjiEOwuqpDxeLXjsqCrwrvM1luYIjeeZQKPbxgyATqehcrYm9UkL FO2lAqLAIchqvx7oaqhB6cNZySQu5Gsb7Ma3EVMvLu+X3NfH+Cd9X9ppdbngP6J8 yVzvQ7hcdZds7EM32l2nBfu7L+9lZd6qXs/5xL0JltIjBnHVy++SPRz5I67Evdrr AWGtbwrKPi2OVB/j9UXoxBeJdj8LNSOrbenhXOEWJFZOa75V3HHwoGCYJrOt4pJh Gf6DzzDMuwmpfPXDMZCK8ZSYdixci/oldv6uzugZ0b+d80s4Kb3a6CAvdFOpVyU2 tT96DRQVSfVcwCHtUoFc1QxtbgOGeMZKbD2CgNDTEg+EsLRMoxAefZMaAA5ybLaP DkiiBwc5STSgp5PBYjVE6H46iHPkrNQQOhPFg5x/eimqTZX9KsQpag4pMxT715xf IlLlpsWCSa3gvvam6czYxzoKTFa4EZg/nvvKkScrONhhSs+Ng6I= =y4r5 -----END PGP SIGNATURE----- --=-Zxybb9R5epo2A89y2zIT--