GNU bug report logs -
#72174
guix download does not support Mercurial
Previous Next
To reply to this bug, email your comments to 72174 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#72174
; Package
guix
.
(Thu, 18 Jul 2024 09:22:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
PIERRE AUGIER <pierre.augier <at> univ-grenoble-alpes.fr>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 18 Jul 2024 09:22:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
https://foss.heptapod.net/fluiddyn/fluidsim is a Mercurial repository.
```
guix download --commit=62c4dbe4f786 https://foss.heptapod.net/fluiddyn/fluidsim
```
fails with:
```
SWH: revision "62c4dbe4f786" originating from https://foss.heptapod.net/fluiddyn/fluidsim could not be found
guix download: warning: revision 62c4dbe4f786 of https://foss.heptapod.net/fluiddyn/fluidsim could not be fetched from Software Heritage
guix download: error: Git error: unexpected http status code: 404
```
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.
--
Pierre Augier - CR CNRS http://www.legi.grenoble-inp.fr
LEGI (UMR 5519) Laboratoire des Ecoulements Geophysiques et Industriels
BP53, 38041 Grenoble Cedex, France tel:+33.4.56.52.86.16
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72174
; Package
guix
.
(Mon, 22 Jul 2024 07:12:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 72174 <at> debbugs.gnu.org (full text, mbox):
Hi,
PIERRE AUGIER <pierre.augier <at> univ-grenoble-alpes.fr> skribis:
> 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.
Indeed, only Git is supported at this point. Supporting Mercurial and
other VCSes would be nice though there’s no plan to do so at this point
(Git support was a low-hanging fruit since Git is already tightly
integrated).
Thanks,
Ludo’.
Severity set to 'wishlist' from 'normal'
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 22 Jul 2024 07:12:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72174
; Package
guix
.
(Mon, 22 Jul 2024 16:40:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 72174 <at> debbugs.gnu.org (full text, mbox):
Hi,
On Mon, 22 Jul 2024 at 09:11, Ludovic Courtès <ludovic.courtes <at> inria.fr> 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.
>
> Indeed, only Git is supported at this point. Supporting Mercurial and
> other VCSes would be nice though there’s no plan to do so at this point
> (Git support was a low-hanging fruit since Git is already tightly
> integrated).
Somehow, “guix download” does not rely on the module ’(guix
git-download)’ that provides ’git-fetch’ but it relies on the module
’(guix git)’. Therefore, “hg-download” is not helpful here and somehow
a brick seems lacking. :-)
Maybe I misread, my understanding in short is that “git-download” or
“hg-download” works with fixed-output derivations, hence the hash must
be known beforehand; source code is fetched via a derivation that the
guix-daemon processes.
Instead, “guix download” fetches using code from user side and not from
guix-daemon side and the source is fetched inside some user’s cache that
is then copied to the store. This way there is no hash check.
The code behind “guix download” supporting Git is implemented with
guile-libgit2 – 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 “guix download”; in
both cases, todo. :-)
HTH
Cheers,
simon
This bug report was last modified 1 year and 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.