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 GK/wFSRCcGDOrAAAgWs5BA (envelope-from ) for ; Fri, 09 Apr 2021 14:01:40 +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 KCbeDyRCcGChEgAAB5/wlQ (envelope-from ) for ; Fri, 09 Apr 2021 12:01:40 +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 E1BBA2B528 for ; Fri, 9 Apr 2021 14:01:37 +0200 (CEST) Received: from localhost ([::1]:54896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUppQ-0005qW-NV for larch@yhetil.org; Fri, 09 Apr 2021 08:01:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUpmw-0004g8-JC for guix-patches@gnu.org; Fri, 09 Apr 2021 07:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUpmw-0004ki-Bm for guix-patches@gnu.org; Fri, 09 Apr 2021 07:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUpmw-0004M9-AK for guix-patches@gnu.org; Fri, 09 Apr 2021 07:59: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: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Apr 2021 11:59: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: =?UTF-8?Q?L=C3=A9o?= Le Bouter , 47670@debbugs.gnu.org Received: via spool by 47670-submit@debbugs.gnu.org id=B47670.161796951616700 (code B ref 47670); Fri, 09 Apr 2021 11:59:02 +0000 Received: (at 47670) by debbugs.gnu.org; 9 Apr 2021 11:58:36 +0000 Received: from localhost ([127.0.0.1]:49221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUpmV-0004LI-S0 for submit@debbugs.gnu.org; Fri, 09 Apr 2021 07:58:36 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:41008 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUpmS-0004Ku-UV for 47670@debbugs.gnu.org; Fri, 09 Apr 2021 07:58:34 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1617969499; bh=wkDSvZIqb23jX3wOdFTng29oOcS/MzeSFHTIK8pYHnE=; h=From:To:Subject:In-Reply-To:References:Date; b=n3ZbMXeMnznqsFLSNKsARInuqZAw0F18D3YgXT8Sl1kQvXJeGVvWql2C3LGV5LHWF yEfFO7kG1/jvCJxQ1s5Q5E9DIFUc47KO2Evrr9zl6p9AjS+dLeHZwSrGtQBhozmMQk +K+sAqHbJ5ImmVH/tbTeYdnGCpSV4uKZgT0ZtrcI= In-Reply-To: <6b8ddedae2addf01efa57dcf3a6723bed81bf076.camel@zaclys.net> References: <6b8ddedae2addf01efa57dcf3a6723bed81bf076.camel@zaclys.net> Date: Fri, 09 Apr 2021 13:58:18 +0200 Message-ID: <87im4vwtyd.fsf@yoctocell.xyz> MIME-Version: 1.0 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=1617969698; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=0Mb01r+Hz0xWYhK8rOar+zy0/HQeq5/I0HahLqgKaxA=; b=BrNGSLODO7oycKK86tKFbxx7P4NgR2LyGjMpMjb9Ags7oWgE83fAG5AwZZqT66Pq5ckLQ8 jyi26VMS5VjgKZPhaz9+HYT5ZLQb/0ICx9LL2unckhBfL/2gR2CdkLc4qiXAledEIAFI8g 8o6ojisbScCJyJ1J/K7wGovLtEVgUq8+imT7MtuFOgFZn0/RbwRnJYBoML5KraHJyjxvGt mhAtKuMHvuGKNLkeqJ+GTc/Tmk8clD2zSXoJrhubFLEkhNwNlzlsnbIobMDgqUCThVwgRc s5RfKPHkI+L1+jZqMEt55V53OCTO6UMnDZPkv6bNsi58mrVf/OnFZgrgX7BpMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617969698; a=rsa-sha256; cv=none; b=oqnG1bRuT9KisyvWZGTqnOIxQBSy9WBBeTgxMsdhS2I3V70XWCUH1kgQPihyctU8ZExOi7 kLNAK25I8iLr97NyxZZEgc+IWny1Cy/xqC2ZAHzPDAPopMTzSvyOp0+Bh0Y61UTLVEp+aq Uins8xISJoVfbGzxPtCmd8zGjn9hGJ+O7t1feBJidvdRzyy51PMDJchtE7sayE2KxCP+HF VE/V/AT6j2IBzcQIgFQJ7rsAIQXab31kvLalxFoEzzPhZumo0/o2Sngi86ZnYCg5f+bclk /lbN1puAEDZgNUbW32x4zKSotWzrm6Bb6XymNPqqEwdSZyoXUW3Yvt9b1nBYlQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=n3ZbMXeM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (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.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=n3ZbMXeM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (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: E1BBA2B528 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3+xDqzM9EFdu On Fri, Apr 09 2021, L=C3=A9o Le Bouter via Guix-patches via wrote: > Thanks a lot for working on this!! You are welcome. :) > I have a question, why do you name it specific to Sourcehut? It could > also work for Github, Gitlab, Gitea or Gogs etc., e.g. 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. > Also I suggest adding a property to somehow specify what the version > number format could be in tags, and also handling cases where format > changes from version to version because upstream has not been > consistent with naming. You can see for Hyperkitty they don't have the > 'v' anymore starting 1.3.1, but I also have examples where version is > separated by '_' and not '.', some times with prefix like: > 'release_4_2_1', it would be nice to be able to specify those formats > with e.g. regex and somehow also be able to handle inconsistency in > upstream naming, maybe some heuristic to generically match version > numbers separated by ANY character with any prefix or suffix? 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. > Thank you!! :-D Thank you for the feedback!