* bug#48008: guix time-machine: error: Git error: the requested type does not match the type in the ODB
@ 2021-04-24 21:17 Oleg Pykhalov
2021-04-30 15:53 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Oleg Pykhalov @ 2021-04-24 21:17 UTC (permalink / raw)
To: 48008
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#48008: guix time-machine: error: Git error: the requested type does not match the type in the ODB
2021-04-24 21:17 bug#48008: guix time-machine: error: Git error: the requested type does not match the type in the ODB Oleg Pykhalov
@ 2021-04-30 15:53 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2021-04-30 15:53 UTC (permalink / raw)
To: Oleg Pykhalov; +Cc: 48008
Hi Oleg,
Oleg Pykhalov <go.wigust@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’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-30 15:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-24 21:17 bug#48008: guix time-machine: error: Git error: the requested type does not match the type in the ODB Oleg Pykhalov
2021-04-30 15:53 ` Ludovic Courtès
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.