guix build --with-commit is broken

  • Done
  • quality assurance status badge
Details
2 participants
  • Brice Waegeneire
  • Ludovic Courtès
Owner
unassigned
Submitted by
Brice Waegeneire
Severity
normal
B
B
Brice Waegeneire wrote on 1 Apr 2020 19:41
(address . bug-guix@gnu.org)
f794269db88d02dc38e3502a21c34b9d@waegenei.re
Hello,

`--with-commit' from `guix build' doesn't always work. It seems to not
really update the checkout contrary to what is reported since changing
the
`git-url`, by adding a slash for example, put it back on track. It makes
it
useless when trying out to build a newly released version. Following are
some examples:

$ guix build mlt
/gnu/store/m6y21nnyg6p0kcxbfj7k1dnbwbsbj006-mlt-6.18.0
$ guix build mlt --with-commit=mlt=v6.18.0
guix build: error: Git failure while fetching
https://github.com/mltframework/mlt.git:the requested type does not
match the type in the ODB
$ guix build mlt --with-commit=mlt=v6.18.0
retrieved commit 46a226217d8ec5bbf66a4fa3da138fd6924dd13b
The following derivations will be built:
/gnu/store/ljlj1dwkdfb7sziy02hi5scskdjmxv02-mlt-6.18.0.drv
/gnu/store/02q25aq6mi8287hbakc9v7z0jmq9f6cz-sdl-1.2.15.drv
/gnu/store/5z3v3w5aslbcsq0ia429n0pkshv6f14x-frei0r-plugins-1.7.
[...]

$ guix build picom --with-commit=picom=v7.5
retrieved commit 3838f053afb1aa05ba1ab489f2dfaa44c00c9ef0
/gnu/store/q1bl4q1x4wmyps5ibljvj4x3y2nl24la-picom-7.5
$ guix build picom --with-commit=picom=vNext
guix build: error: Git failure while fetching
https://github.com/yshui/picom.git:the requested type does not match
the type in the ODB

I've found out about this issue by reading pelzflorian's suggestion
about
adding a `--with-version' in [0] and [1], he wrote that a year ago,
before
support for tags was added to `--with-commit'.


- Brice
L
L
Ludovic Courtès wrote on 2 Apr 2020 23:17
(name . Brice Waegeneire)(address . brice@waegenei.re)(address . 40377-done@debbugs.gnu.org)
87a73tmvsw.fsf@gnu.org
Hi,

Brice Waegeneire <brice@waegenei.re> skribis:

Toggle quote (6 lines)
> $ guix build mlt --with-commit=mlt=v6.18.0
> updating checkout of 'https://github.com/mltframework/mlt.git'...
> guix build: error: Git failure while fetching
> https://github.com/mltframework/mlt.git: the requested type does not
> match the type in the ODB

[...]

Toggle quote (6 lines)
> $ guix build picom --with-commit=picom=vNext
> updating checkout of 'https://github.com/yshui/picom.git'...
> guix build: error: Git failure while fetching
> https://github.com/yshui/picom.git: the requested type does not match
> the type in the ODB

Interestingly,

guix build guile-gcrypt --with-commit=guile-gcrypt=v0.2.0

would work just fine.

This is because the tags in the above examples actually point to a
“commit” object instead of pointing to a “tag” object as in the
guile-gcrypt case. Weird.

Fixed with commit efa578ecaece67366b4b0e2266de7c2faaa4ae54.

Thanks,
Ludo’.
Closed
B
B
Brice Waegeneire wrote on 3 Apr 2020 09:02
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 40377-done@debbugs.gnu.org)
1e1a135a32f1c7930f219d50a2aa48d4@waegenei.re
Hello Ludovic,

On 2020-04-02 21:17, Ludovic Courtès wrote:
Toggle quote (2 lines)
> Fixed with commit efa578ecaece67366b4b0e2266de7c2faaa4ae54.

Thank you for that really quick patch. It seems to be working
well now.

- Brice
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 40377@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 40377
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch