unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / Atom feed
* 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

unofficial mirror of bug-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git