From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QLS4NDIdHWFuCwAAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 16:46:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IABkMDIdHWHzVQAA1q6Kng (envelope-from ) for ; Wed, 18 Aug 2021 14:46:10 +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 6DC681896 for ; Wed, 18 Aug 2021 16:46:10 +0200 (CEST) Received: from localhost ([::1]:46766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGMpT-0006Al-Ku for larch@yhetil.org; Wed, 18 Aug 2021 10:46:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGMpP-00066m-6M for guix-patches@gnu.org; Wed, 18 Aug 2021 10:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGMpO-0001iT-GI for guix-patches@gnu.org; Wed, 18 Aug 2021 10:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGMpO-0003it-Eo for guix-patches@gnu.org; Wed, 18 Aug 2021 10:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50072] [PATCH WIP 4/4] upstream: Support updating git-fetch origins. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Aug 2021 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , Sarah Morgensen , 50072@debbugs.gnu.org Received: via spool by 50072-submit@debbugs.gnu.org id=B50072.162929795413896 (code B ref 50072); Wed, 18 Aug 2021 14:46:02 +0000 Received: (at 50072) by debbugs.gnu.org; 18 Aug 2021 14:45:54 +0000 Received: from localhost ([127.0.0.1]:57209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGMpB-0003Xu-Kc for submit@debbugs.gnu.org; Wed, 18 Aug 2021 10:45:53 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:58368 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGMp5-0003Lk-Ek for 50072@debbugs.gnu.org; Wed, 18 Aug 2021 10:45:48 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1629297932; bh=Pbsr4GAOeBvVspx8pYJkYdGlGX0xZ/d5bmOPe8s/DZI=; h=From:To:Subject:In-Reply-To:References:Date; b=g/V8d767FNKL3PiY5FxDc54Qy9TZi13IkcgRQxzvvsql/EnSYdQk+9hOhhNw6fep9 F097GVho4u4kTuyfbwO2hmLMR37/ws2l3W6PvvgFquWbWWjpFMRr/Ui1LhWZbru6fW 9Wr1bhQ9KCXBrSSyjslL33SsYOCS5HoOEwL7FJmU= In-Reply-To: <12f985cd431b8b8099f680a3b25ed2eb90e6b26d.camel@telenet.be> References: <8d1ae518b23fac5b15812a30b11df1c360ab3fbf.1629068119.git.iskarian@mgsn.dev> <87wnol8rw3.fsf@yoctocell.xyz> <12f985cd431b8b8099f680a3b25ed2eb90e6b26d.camel@telenet.be> Date: Wed, 18 Aug 2021 16:45:11 +0200 Message-ID: <878s0yke14.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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=1629297970; 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: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=t2YuU0oahfyweqoUvpL/qlYPL25chHMY831PmkyLJtc=; b=jdXNo0IBHZsRLTl5B4cRefuiDEgppsQfUu0AzzhMQ3SCwjy9ijRM9Y+KpT13k7AInWgaeX At1JeWB6zJqrEqOAAvOV8ojRrHmDmlDemjzaMe1WAFnjCxuSmPpPA4Ba2IqrvP4ZcgtbNg 4eazI4Nl0aKQO8xQ6gQlTWYvpeClAE49AtXM1FZcz7BKM3UyRWinq/l7+8pICCTpVr5wyO 74hk+7qmIIt1996I1KzN3CsYbsQJ9RnFProFqwOPQUaoOH/mVXLGkT13c5lxGOBt37iu6F 4HI/KpavcfBA1+4Od9UWOHXW6j6N2nWhJl11bGSr6ZD7t0ZWVKYrBcmK0vxHXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629297970; a=rsa-sha256; cv=none; b=a4pZyzjyD0/jmDLONg4PHT9PD7Pt9p3M0D/5SRH3XtOH1aGV6JMBWutdVPkve27DHocJA3 tNnyryYGJTKByj+x12N69oGOMiPxeKkSrlJF656SYqmDvtHJMoGE6CxicdtyODf4Qa94zD qcWD16YoqegS2d1K7EVfzsktbQvN0D+NQNaNp0rhtheAWyZXg5MZYbtCUHgLljJwiE/JjZ 3zxt2ubCn9fS5B2WZhmOkG5l9xQKH29moA9FVRXZJeiOcjQp+PQzXudiKJwyyxohuDCI9E efcrdvi/VGK63QeUbVSJp7GfRiKT8BjOkICVz5Q8Kq0eYwstI4BTdQ1mDPge0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b="g/V8d767"; 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: -3.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b="g/V8d767"; 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: 6DC681896 X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: ohpilFRA/quc --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Aug 16 2021, Maxime Devos wrote: > Xinglu Chen schreef op ma 16-08-2021 om 15:02 [+0200]: >> On Mon, Aug 16 2021, Maxime Devos wrote: >>=20 >> > Sarah Morgensen schreef op zo 15-08-2021 om 16:25 [-0700]: >> > > * guix/git-download.scm (checkout-to-store): New procedure. >> > > * guix/upstream.scm (guess-version-transform) >> > > (package-update/git-fetch): New procedures. >> > > (%method-updates): Add GIT-FETCH mapping. >> >=20 >> > Does it support packages defined like (a) >> >=20 >> > (define-public gnash >> > (let ((commit "583ccbc1275c7701dc4843ec12142ff86bb305b4") >> > (revision "0")) >> > (package >> > (name "gnash") >> > (version (git-version "0.8.11" revision commit)) >> > (source (git-reference >> > (url "https://example.org") >>=20 >> IIUC, it only supports GitHub URLs at the moment. I have a WIP patch >> for adding support for any arbitrary Git repository[1]. > > This patch series doesn't mention GitHub anywhere (except in the patch > series description) so I don't think it only supports GitHub URLs. > Admittedly, only one updater, "github", currently produces git-reference > URLs, That was what I was referring to, sorry for not making it clearer. Only the =E2=80=98github=E2=80=99 updater can update =E2=80=98git-fetch=E2= =80=99 origins; =3D> only GitHub URLs can are recognized by the =E2=80=98github=E2=80=99 up= dater; =3D> thus, only packages hosted on GitHub can be updated. > but I sent a patch series [2] that adds an importer which produces > git-reference URLs and the corresponding updater (see =E2=80=98git-fetch.= patch=E2=80=99) > produces appropriate git-reference objects. > > [2]: . I haven=E2=80=99t looked at the patches yet, but that looks very cool! :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmEdHPcVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5iSgQAIzTNsUOYtetadiDvv7HCvaXGbG4 RSC+bJmKVaayMPBsOcSPOIkiT+YwYambXyGSZqyyuxc6oSbBXtmuUHxD63tpoYIJ NMutoH8f4GLsJxLwojZP+OWoduIC8cQtyxr24KJyqN58tIkFgg+QYihGPktg9CsN XI8AurDzCA8DFnT1r6sDM3+5zQV7PTKBvRavPh6bJDvUQgh7m3rNOu7rfC8XGcO7 VAOIHni8TW66MKcgXHDVLlSxzG9Ab0OhpaTSOKhcNNc0dGjrp4jR+CMqjR8Yg+bO 7JB6fWfEYJRxjHV27NslJ26qn7NgpXEIDoXUSxAT7C0qQ81Xv0RCavV7ZT6USb0R NpQCNcblrV0maoYP2aQPSvKNSTTI9t19Z5jBghQZ0iuIUpu6lhf12BULemR+Pv3O 6yy9m3OOLvaMJRzQjs4BmVqHaUMaYrpNODl6f3TrBEWW6eBaV6YU5qm4Ub+u8glM fCiiCexYjMeJZhftS3M5FQnWMMk31Li+11uuixT73kARVW3ukNZothcQAX3KSG0d +jP/gPeunZ0EwAAlVYEmo8A8h6MZtyP8DMlAo0fvc7XuTeMbSnD9Dx/DsTb4niOj SWi7zeqxJS6koXAFd3KnOZ6steMEBZZuBvak74UOMVK0cK/y0Pm3k/gG86VmufF9 j/jetFShbiDluYa6 =Ct9e -----END PGP SIGNATURE----- --=-=-=--