GNU bug report logs -
#48008
guix time-machine: error: Git error: the requested type does not match the type in the ODB
Previous Next
Full log
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 101 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.