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 lduxFsY8yGAvQwAAgWs5BA (envelope-from ) for ; Tue, 15 Jun 2021 07:38:14 +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 CJSJEcY8yGCaCwAA1q6Kng (envelope-from ) for ; Tue, 15 Jun 2021 05:38:14 +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 95A7D19508 for ; Tue, 15 Jun 2021 07:38:13 +0200 (CEST) Received: from localhost ([::1]:40596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lt1m6-0000xG-AR for larch@yhetil.org; Tue, 15 Jun 2021 01:38:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lt1ly-0000x4-CC for guix-patches@gnu.org; Tue, 15 Jun 2021 01:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36705) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lt1ly-00041W-27 for guix-patches@gnu.org; Tue, 15 Jun 2021 01:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lt1lx-00065o-VO for guix-patches@gnu.org; Tue, 15 Jun 2021 01:38:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48971] [PATCH 0/2] Add SWH support for Hg repositories Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 15 Jun 2021 05:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48971 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 48971@debbugs.gnu.org Received: via spool by 48971-submit@debbugs.gnu.org id=B48971.162373545823389 (code B ref 48971); Tue, 15 Jun 2021 05:38:01 +0000 Received: (at 48971) by debbugs.gnu.org; 15 Jun 2021 05:37:38 +0000 Received: from localhost ([127.0.0.1]:48251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lt1lZ-00065B-LD for submit@debbugs.gnu.org; Tue, 15 Jun 2021 01:37:37 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:59368 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lt1lY-00064w-0K for 48971@debbugs.gnu.org; Tue, 15 Jun 2021 01:37:36 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1623735448; bh=Z5YIZI1NfbJyU5lq+1bZ3/l9OuaiYNArKhlqG6nIbgk=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=aSVGQTLrYa4wuODzcAjFxv3nvsuGZE/92j2jcIOwqY1tp0pSPYoEhuPEyvqEtUkzf EIziZSkzVNuRE4q3srByxjMXuHdO+jFxrOiNbyEES3C1S8uKyI9W3MYvnMbrrac+Ao WHntixpSaOdwZ5ncfGkcB7+ZyhcPkqGX/AbXVAg0= In-Reply-To: <87k0mwwg3r.fsf@gnu.org> References: <87k0mwwg3r.fsf@gnu.org> Date: Tue, 15 Jun 2021 07:37:27 +0200 Message-ID: <87mtrrhenc.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=1623735493; 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: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=4Te6xz85nlDfsDmgQVb0LrjGdJE435rqgOx+ro8Me8I=; b=hNl1UF7Jt/fTAmV0Ogmy111vYVB4gsaye5kEPUdHb3U5aw2RreERsHP/9QMhEnSGljOgen T6fsfY8m9FZr948AHJx7YxMMDZROILxVIj0wSY/ULZw/Tw3xM70hhpEQEpbqXe+or/aJuU +fhjPPnx8+LQupZhTymGMD1Ttw6NRJrfnxbesZ0tB0cwuCh4QCUq+fGSQixSj3zlowK3V3 qr9X4p+/aNjSFXZRshysyvN5eUDwi8a8DW26qGom6bJ8nTHjJlpzIrOW/lwTbpemhscLa5 dCYVi2gDt58wRa7TQXN541o58em6OX4RCOHtdCxdNKnK9QgTrn2l2bLjndFrqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623735493; a=rsa-sha256; cv=none; b=gRa/BJw6DEhr8tQAWQkUdurg3s9nN4qmiHUb683BONIBYMv73jGHAe0purFRxopwoUjEhb wTo4vPtyp188Af9btKoRMG7mycyVUmR8j1j12w9I58T2PA3LGGA64bMxbzo0FY0gxhp3Jy Q/ln3N+DGnDnOZrKR8h83h7GPf4m6WXAdC3hnboFA3rczkQL4Yng1XDrwpgY7EAp6pM2fQ pHPNtJ0cFgfdwxQ8CMU3udXtRRXcvjvXJcoNo26tMAzUwcsOBezh3Wseg85oKI1E4ABD+C jXWXcBRjlMVTmxJ+Xad4n7wFmAnBFyaxVdI1OgW9zjRHQH+C46igZXdPLeuMtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=aSVGQTLr; 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=aSVGQTLr; 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: 95A7D19508 X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: Bt1gQYNhxb2x --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Jun 14 2021, Ludovic Court=C3=A8s wrote: > Hello, > > Xinglu Chen skribis: > >> Xinglu Chen (2): >> swh: Support lookup of Hg tags. >> hg-download: Support falling back to SWH. > > Pushed as 69d7333217ce85d9d1643a8349757b6b170d3b1f! > > Note that currently this only works for (1) repositories that are > archived, and (2) origins that refer to hg tags, not commit IDs. > > I found an example that meets these criteria: python-openpyxl. :-) > I commented out the other fallbacks in (guix hg-download) and ran: > > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix build python-openpyxl -S --no-substitutes=20 > The following derivation will be built: > /gnu/store/71xjlgdqw50a76ycqrmjrqh7b4mdi5s7-python-openpyxl-3.0.5-chec= kout.drv > building /gnu/store/71xjlgdqw50a76ycqrmjrqh7b4mdi5s7-python-openpyxl-3.0.= 5-checkout.drv... > guile: warning: failed to install locale > environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc= 5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/b= in' > Trying to download from Software Heritage... > SWH: found revision 4d4e19e58314de481b98f4c239c3b3e9fd080613 with directo= ry at 'https://archive.softwareheritage.org/api/1/directory/fb5bbba156e6b8e= 2bb94ea1dd5807ef2c8931864/' > SWH vault: requested bundle cooking, waiting for completion... > SWH vault: requested bundle cooking, waiting for completion... > SWH vault: requested bundle cooking, waiting for completion... > SWH vault: requested bundle cooking, waiting for completion... > SWH vault: requested bundle cooking, waiting for completion... > SWH vault: requested bundle cooking, waiting for completion... > SWH vault: requested bundle cooking, waiting for completion... > --8<---------------cut here---------------end--------------->8--- > > It=E2=80=99s still waiting for the bundle=E2=80=A6 Hmm, I tried it on a package in local config and it seemed to work fine with commit IDs, I guess this was because I ran =E2=80=98guix hash -r=E2=80= =99 on the extracted tarball I downloaded from SWH, so the source was already in the store when I tried to build it... > Regarding #2, there are some good news: > is about implementing a > mapping from =E2=80=9CVCS IDs=E2=80=9D (hg commit IDs in this case) to SW= HIDs. Thus, > eventually, =E2=80=98lookup-origin-revision=E2=80=99 should be able to ta= ke an hg commit > ID and to map it to an SWHID. That JSON API isn=E2=80=99t exposed yet. Oh, that=E2=80=99s great! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmDIPJcVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5d0MP/RM1HfSJEY0e/dZAPP+gz++uFJAV k8ojApV+3s7Ib1nK4swj5ylN0EeaQCVgYGcgbFRXrfDf8m4kYQrrooziEZoXnK8l UVIDacDyP/7Cc/1kWbio9z/TexpUvbdtENpOlkhLlV91qEHs5oaeO+2HsDE5l2Ls Zt9xu3fZgNS3Vmi+eHYYM7EPfwePaGKo5GsqHvXQn3fojgpsW+LDs/IUocJ0irFm QPmU8XSsm2GxVefGr1O0WEivn/LDGQmFqoBHFr/X8HIKttFNWYoxVuuLopZyycHK /2aOMyqfW4gF09vgBAt45alg0Vvtn0KnXjkFQeyodFdObKyXysTmo8YJwbrNkp/y n1FTc6o0iunV+Kx0+uzpHnw5zajZLNBgWfWg6m0v6SDwgncQcF6HyuA2aRn6USlx fOJF3RXPemkAxe/1/lua4bv+SFeJzCBWjS+PJcM0ITP0T5JVsr9R1WnUJBQWMhTt L2DK7N6lGoh+xFCf2l3YAdRavcG4eKdN6H7u2uN10RCfTEI5t4A8NCJuOVskYqu1 jGOll9CdxSJQ/uNZghkg8S0SEfq76zM2aV9s189Hx9n61erLmpHIlXRMc7wPWEd2 U8RRnGmrlEfsFydTLOHgRlIHcz2BBXurOgXYTGRxUBW2kdcyri2RHGALTg3Aq0kq FM+JhlLjZ3uTSw++ =C+pZ -----END PGP SIGNATURE----- --=-=-=--