GNU bug report logs -
#48008
guix time-machine: error: Git error: the requested type does not match the type in the ODB
Previous Next
To reply to this bug, email your comments to 48008 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#48008
; Package
guix
.
(Sat, 24 Apr 2021 21:18:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sat, 24 Apr 2021 21:18:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
guix time-machine fails for 5b7a1cb0 (doesn't fail for the parent commit
baab87ac).
$ mv ~/.cache/guix/checkouts ~/.cache/guix/checkouts.1
$ guix time-machine --commit=5b7a1cb077931a020c0b7e3b12f12a7bda221d96 -- build hello
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
guix time-machine: error: Git error: the requested type does not match the type in the ODB
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#48008
; Package
guix
.
(Fri, 30 Apr 2021 15:54:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 48008 <at> debbugs.gnu.org (full text, mbox):
Hi Oleg,
Oleg Pykhalov <go.wigust <at> gmail.com> skribis:
> guix time-machine fails for 5b7a1cb0 (doesn't fail for the parent commit
> baab87ac).
>
> $ mv ~/.cache/guix/checkouts ~/.cache/guix/checkouts.1
>
> $ guix time-machine --commit=5b7a1cb077931a020c0b7e3b12f12a7bda221d96 -- build hello
> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> guix time-machine: error: Git error: the requested type does not match the type in the ODB
What ‘guix’ is trying to tell us is that
5b7a1cb077931a020c0b7e3b12f12a7bda221d96 is not a “commit” object: it’s
a “tag” (or “annotated tag”) object.
Instead, you should run:
guix time-machine --commit=d68de958b60426798ed62797ff7c96c327a672ac -- \
build hello
… where d68de958b60426798ed62797ff7c96c327a672ac is the commit this tag
points to (v1.0.1).
That said, as a user, one certainly doesn’t care about this subtlety.
It would be nice if (guix git) could automatically dereference annotated
tags, though it doesn’t seem to be that simple (there are places where
we explicitly ask for a commit object and we need to keep some sort of
“type checks” on Git objects).
Thanks,
Ludo’.
This bug report was last modified 4 years and 93 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.