From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gCt9BHqLnmZAEwEA62LTzQ:P1 (envelope-from ) for ; Mon, 22 Jul 2024 16:40:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gCt9BHqLnmZAEwEA62LTzQ (envelope-from ) for ; Mon, 22 Jul 2024 18:40:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Jv4y1xoY; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721666425; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kT0u2slbUN/MThUcXoeRRnzaIK2tVGNP8Qfm5rXDoD0=; b=XeETT+62NXP9pLJkhqOzwdtDnHGfuUGjhWLoOGwdLh/pK+EazXW6U705wh7WX8XHoOjlFM cKg0sK17CzSIJ6l/89s5zg/o8PpcXdsUZ1PqzTh8AXBhr816F0h2fiKAE6cNCklM2jNiUe dsWoY6J98fVHepNHONzesklvfzE1TyVhjDP8cKwdGM0HS4oDfTqRfkw6DZHaMhXiMKR7c6 nMhEpueVSw9Tc3uXAOYmHjRKGIdJdMCYPgTWEpiYZ7UYE5DgyyxnQQQZ6xr7FbnWZpbe+0 gTOwRHDy5tr9O0ItTCO6fKatbQHhouYWg3JYBPX1kD6pY9JqCRqFBdmIUfi57A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Jv4y1xoY; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721666425; a=rsa-sha256; cv=none; b=OfmidJOlnSxwTeUAqJkUagPw5Vy/JWIfIsRhlEc+T/dSn0XiHwDAIZL1tAWHbU4qfsO8T5 k8Jz+jPIZRMRl/TnpC4qfhErydA0B0R2ikRC6lOrl3Z2Buyx+rbvNLqOJDoToxVAuCzqZu L8j3ola8TC16+vjR3yeb6Zg5EFttPdkDmLNBUFs2XAzAnrym+l82ZuexonA+naHuKzl82b OjwTOlWlfAWvsLZoSSO2iMdcjZLXncU/IX+HDPODla5kGBllzYVnfPo+0So/AEOI5AjKMF PQc5FCG7qFFrpWmAFJtWR42FdOCHehRGRPI5lFWLziNk1wQdwJORnT5vq7ywDw== 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 D53C354538 for ; Mon, 22 Jul 2024 18:40:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVw4v-0000mg-TM; Mon, 22 Jul 2024 12:40:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVw4t-0000ix-Q0 for bug-guix@gnu.org; Mon, 22 Jul 2024 12:39:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sVw4s-0005YX-M9 for bug-guix@gnu.org; Mon, 22 Jul 2024 12:39:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sVw4v-0007UQ-OQ for bug-guix@gnu.org; Mon, 22 Jul 2024 12:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#72174: guix download does not support Mercurial Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 22 Jul 2024 16:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72174 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , PIERRE AUGIER Cc: 72174@debbugs.gnu.org Received: via spool by 72174-submit@debbugs.gnu.org id=B72174.172166634828701 (code B ref 72174); Mon, 22 Jul 2024 16:40:01 +0000 Received: (at 72174) by debbugs.gnu.org; 22 Jul 2024 16:39:08 +0000 Received: from localhost ([127.0.0.1]:58498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVw44-0007Sr-9L for submit@debbugs.gnu.org; Mon, 22 Jul 2024 12:39:08 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:40898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVw42-0007SN-2q for 72174@debbugs.gnu.org; Mon, 22 Jul 2024 12:39:07 -0400 Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4266ea4e4bdso5205305e9.3 for <72174@debbugs.gnu.org>; Mon, 22 Jul 2024 09:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721666276; x=1722271076; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kT0u2slbUN/MThUcXoeRRnzaIK2tVGNP8Qfm5rXDoD0=; b=Jv4y1xoY1X6Yj6emGAF/02o4aqS7cFKlmJSgIaaVakHg0FUz5ZNB2t0yevOvDO+dGq R5YbenrENauwDAEDT0HRLh9chtvvmZ+yXYc/M/jz4zJp0Bn3JjHXP/XF7r87Q+tSDrtj atfvst4bnQM9EJSnKtnL4Cw8FfEN6n+k9Qj7EPGqcOoCW9WuHFyGGtoRaKWUlfw9tLcl EsIMW+NRpdMhf35Wpx83cF+LBOjwpQMUcezC3X0GxHQMcclYh59NPlmr+kgp2jfTLeJV XyRbfzq4n1ZkJn72AdaCnXg1p2QgquPTr8Rmz/8Loz5dwWOT0epzlPrD5QS9oHGU6yve wjjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721666276; x=1722271076; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kT0u2slbUN/MThUcXoeRRnzaIK2tVGNP8Qfm5rXDoD0=; b=jFTMdg7g94WiP3mwuLd9m/vUQ8IL4dFt9RntWQzf8pHyId9nYh2clNeMWqbKJfJ9gw hV7qzhtGru1b3timsNn/u8GnqmlmPQI10xBzpxwU1L33BVCRU55HybMaaKhcCMCkO2fh OOUvGULBOZI3LEoaZzqZFX2PBzAfiZmN0m1qgfhRcuurWXPjAJpwLfRm4kLfXEWdh1IF CzzHZhWRc69qkitd+SabpVm+eiQWzuZlPRbp3nX49AV8F9TmTpanRpzhc+qF97j0mJ0t nq8wblyOLie8gMgSIfjuA+JQNdi0mc5jlpRBTRj9vXemHVvPq6zP3B/Y4GPC4aJDV8G6 lVAQ== X-Gm-Message-State: AOJu0YwFFVD8rvgbEvajJP8V92mcpWlW+EYuQzLWU76WL+Owimp/s1nO G8fqNucMxC3Zq9q8osSzHvtG+G8aT27XOMVvpghgJPMAUXfdC/dybFmxrw== X-Google-Smtp-Source: AGHT+IEi0YBv25mObpJfYAjYoQH+MD/2sOcTfpXvaaxkxAeCjJDjiR23rigy6EJX6TECbyrw8ia56w== X-Received: by 2002:a05:600c:3b06:b0:426:67e0:3aa with SMTP id 5b1f17b1804b1-427daa34843mr35040805e9.1.1721666275670; Mon, 22 Jul 2024 09:37:55 -0700 (PDT) Received: from lili (2a02-8429-6820-f501-155c-29e9-ef9d-8cf9.rev.sfr.net. [2a02:8429:6820:f501:155c:29e9:ef9d:8cf9]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427d2a9466bsm162690035e9.41.2024.07.22.09.37.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 09:37:54 -0700 (PDT) From: Simon Tournier In-Reply-To: <878qxtlx42.fsf@gnu.org> References: <1753693157.3691505.1721293480459.JavaMail.zimbra@univ-grenoble-alpes.fr> <878qxtlx42.fsf@gnu.org> Date: Mon, 22 Jul 2024 17:51:12 +0200 Message-ID: <87ttghfmrz.fsf@gmail.com> 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: D53C354538 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.31 X-Spam-Score: -5.31 X-TUID: Za4DFloMJkMu Hi, On Mon, 22 Jul 2024 at 09:11, Ludovic Court=C3=A8s wrote: >> I studied `guix download -h` which shows that `guix download` only >> supports Git repositories. Since there is `hg-download`, it would >> make sense that the command `guix download` support Mercurial.=20 > > Indeed, only Git is supported at this point. Supporting Mercurial and > other VCSes would be nice though there=E2=80=99s no plan to do so at this= point > (Git support was a low-hanging fruit since Git is already tightly > integrated). Somehow, =E2=80=9Cguix download=E2=80=9D does not rely on the module =E2=80= =99(guix git-download)=E2=80=99 that provides =E2=80=99git-fetch=E2=80=99 but it rel= ies on the module =E2=80=99(guix git)=E2=80=99. Therefore, =E2=80=9Chg-download=E2=80=9D is = not helpful here and somehow a brick seems lacking. :-) Maybe I misread, my understanding in short is that =E2=80=9Cgit-download=E2= =80=9D or =E2=80=9Chg-download=E2=80=9D works with fixed-output derivations, hence th= e hash must be known beforehand; source code is fetched via a derivation that the guix-daemon processes. Instead, =E2=80=9Cguix download=E2=80=9D fetches using code from user side = and not from guix-daemon side and the source is fetched inside some user=E2=80=99s cache= that is then copied to the store. This way there is no hash check. The code behind =E2=80=9Cguix download=E2=80=9D supporting Git is implement= ed with guile-libgit2 =E2=80=93 tightly integrated ;-); see latest-repository-commit calling update-cached-checkout from (guix git). It would be possible to implement the equivalent for Mercurial or redesign =E2=80=9Cguix download= =E2=80=9D; in both cases, todo. :-) HTH Cheers, simon