Subject: bug#41093: --with-commit only works with git repos

From: Ludovic Courtès <[email-masked]>
Date: Tue, 05 May 2020 21:00:11 +0200

Hi,

Hartmut Goebel <[email-masked]> skribis:

> guix build --with-commit only works with git repos

Yup, as documented (info "(guix) Package Transformation Options").  :-)

> I would expect it to work with mercurial repos, too, as basically this
> is just setting a value in the source definition. (At least this is what
> I would assume it does.)

And Subversion, and Monotone, and CVS…  but no, this is not
implemented.  ;-)

The implementation is different from what you suggest: it uses a
<git-checkout> record instead of an <origin>.  That performs a checkout
beforehand and uses that as the source.

Closing, but you can open a wishlist item if you want.

Thanks,
Ludo’.