From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UMnxKywZcGDNQgAAgWs5BA (envelope-from ) for ; Fri, 09 Apr 2021 11:06:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wO7pJSwZcGAfHAAAB5/wlQ (envelope-from ) for ; Fri, 09 Apr 2021 09:06:52 +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 336F11BF06 for ; Fri, 9 Apr 2021 11:06:52 +0200 (CEST) Received: from localhost ([::1]:42372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUn6J-0001yB-Cv for larch@yhetil.org; Fri, 09 Apr 2021 05:06:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUn3b-0000zX-0n for guix-patches@gnu.org; Fri, 09 Apr 2021 05:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUn3a-0007W6-PS for guix-patches@gnu.org; Fri, 09 Apr 2021 05:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUn3a-0003kN-KN for guix-patches@gnu.org; Fri, 09 Apr 2021 05:04: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 09:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47670 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47670@debbugs.gnu.org Cc: =?UTF-8?Q?L=C3=A9o?= Le Bouter X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161795898414311 (code B ref -1); Fri, 09 Apr 2021 09:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2021 09:03:04 +0000 Received: from localhost ([127.0.0.1]:49065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUn2d-0003ik-FC for submit@debbugs.gnu.org; Fri, 09 Apr 2021 05:03:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:41624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUn2a-0003iH-KY for submit@debbugs.gnu.org; Fri, 09 Apr 2021 05:03:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUn2a-0000sR-8t for guix-patches@gnu.org; Fri, 09 Apr 2021 05:03:00 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:57298 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUn2X-0006vh-SV for guix-patches@gnu.org; Fri, 09 Apr 2021 05:03:00 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1617958973; bh=cb7PKcyLN3tkjTIBzwaw17V5Cp5pzilmeD0DbRF5wus=; h=From:To:Cc:Subject:Date; b=P1iUf7PiCEhz6SE01BJ6yvAz+xHKspE9cdiBDnV8fSGEBMGSb3Hal/H6US852d0aT yYI5fxMosQlYOlqroCNpwG3SipQ9fr+SbVnTxwUsIokKEKjsLcb0pVbe0/sH9Ct9iu NOs4Vo8icwqk5nqU99XG4xY7v7XszBT/4R+COnf4= Message-Id: Date: Fri, 09 Apr 2021 11:02:52 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 18 X-Spam_score: 1.8 X-Spam_bar: + X-Spam_report: (1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.5, FROM_SUSPICIOUS_NTLD_FP=0.421, PDS_OTHER_BAD_TLD=1.999, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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=1617959212; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4NiDVu05v+o7p8VM1C+FCbgr44sSKdvaWEKOZu24Agw=; b=sKEU4Rzif7fuH5qP/aTjDEUYCIzmcwvERf77WRZrvUDrhbm00RMmR8+rQ1yXJn0Z2a/hXM aAnBsd0vcuqXrL4F461bHO3P40YKaNWaGznIdKypfyVywwNqRFzb1xZ9UpBEoUVFZbGR0i B/GQl5NNTruAOS0glCrlceWhuer9SzFMjQvcfjSZAMyo1lr4kGfa8NZq4nS9aIdrwTbV7v aAkTywO4LEW82QroIbH74H/835TMv+/dbUf2Fmpa9TXuC+oGlIoTvtXMvmYz7tHT4eWfwA oc/VbpT4lvlYtnX2Hd4Sk+ek6kusqYozvDSN7wVwSZcTSO8LukyVK2S8IFMhfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617959212; a=rsa-sha256; cv=none; b=I944QDuUlzzGxyolboNvjahswmPtCJFtGYZTchq8g+lcBHSudLiR6YVYWVuFzrtt1kiTJY qry1uDHkV595+DNcloBjboSDKZ0RnkvS8ChoC4PZiXBK4/0s1PGTtwHdUS+BqV9oal+Xgx 01Qyacw3f3GN4sriw77VFL6caKch+lm8PF8LoM+GE/tZ95NeDKytkqmVS2rQi119sJkpH1 +z9n2gIt9dmC5LFLjN1iVGC+IKNAPyQY1K/C3VAyEIw0q0pb2Fg3AesPVF7xkgC0Bupv7F NalwybSEQTpovJC2fPh6McZR1He6l8oj+PXoxvbw/qqIKAX40wxO0bfSlO2IGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=P1iUf7Pi; 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: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=P1iUf7Pi; 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: 336F11BF06 X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: SDgDoN/IawRK This adds support for updating packages hosted as SourceHut Git repositories. It looks at the Git tags on the remote (thank you L=C3=A9o f= or pointing this out[1]) to determine the latest release. It won't be as reliable as the GitHub updater, but still better than nothing, I guess. SourceHut also has support for Mercurial, but I am not familiar with it, maybe I will look into it in the future. :) See it in action: $ ./pre-inst-env guix refresh fennel gnu/packages/lua.scm:1176:13: fennel would be upgraded from 0.8.1 to 0.9.0 [1]: https://yhetil.org/guix-bugs/f8aad9c186074f29907952a6740c09faf0820cac.= camel@zaclys.net Xinglu Chen (2): upstream: Add predicate for Git URLs. gnu-maintenance: Add 'sourcehut-git' updater. doc/guix.texi | 3 ++ guix/gnu-maintenance.scm | 90 ++++++++++++++++++++++++++++++++++++++++ guix/upstream.scm | 20 +++++++++ 3 files changed, 113 insertions(+) base-commit: 29a6c361492b18bcb0f6d2517d010a1b48441521 --=20 2.31.1