* bug#72174: guix download does not support Mercurial
@ 2024-07-18 9:04 PIERRE AUGIER
2024-07-22 7:11 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: PIERRE AUGIER @ 2024-07-18 9:04 UTC (permalink / raw)
To: 72174
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#72174: guix download does not support Mercurial
2024-07-18 9:04 bug#72174: guix download does not support Mercurial PIERRE AUGIER
@ 2024-07-22 7:11 ` Ludovic Courtès
2024-07-22 15:51 ` Simon Tournier
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2024-07-22 7:11 UTC (permalink / raw)
To: PIERRE AUGIER; +Cc: 72174
Hi,
PIERRE AUGIER <pierre.augier@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’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#72174: guix download does not support Mercurial
2024-07-22 7:11 ` Ludovic Courtès
@ 2024-07-22 15:51 ` Simon Tournier
0 siblings, 0 replies; 3+ messages in thread
From: Simon Tournier @ 2024-07-22 15:51 UTC (permalink / raw)
To: Ludovic Courtès, PIERRE AUGIER; +Cc: 72174
Hi,
On Mon, 22 Jul 2024 at 09:11, Ludovic Courtès <ludovic.courtes@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-26 16:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18 9:04 bug#72174: guix download does not support Mercurial PIERRE AUGIER
2024-07-22 7:11 ` Ludovic Courtès
2024-07-22 15:51 ` Simon Tournier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.