From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IKxgHp4ojGBtxwAAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 17:56:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CHvvGZ4ojGBbCgAAB5/wlQ (envelope-from ) for ; Fri, 30 Apr 2021 15:56:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E89AD28CE7 for ; Fri, 30 Apr 2021 17:56:13 +0200 (CEST) Received: from localhost ([::1]:42630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcVUx-0003UU-V0 for larch@yhetil.org; Fri, 30 Apr 2021 11:56:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcVSr-0002IW-V6 for bug-guix@gnu.org; Fri, 30 Apr 2021 11:54:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48091) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcVSr-00027d-MT for bug-guix@gnu.org; Fri, 30 Apr 2021 11:54:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcVSr-00071l-KV for bug-guix@gnu.org; Fri, 30 Apr 2021 11:54:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48008: guix time-machine: error: Git error: the requested type does not match the type in the ODB Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 30 Apr 2021 15:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48008 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Oleg Pykhalov Received: via spool by 48008-submit@debbugs.gnu.org id=B48008.161979802726990 (code B ref 48008); Fri, 30 Apr 2021 15:54:01 +0000 Received: (at 48008) by debbugs.gnu.org; 30 Apr 2021 15:53:47 +0000 Received: from localhost ([127.0.0.1]:59637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcVSc-00071G-QM for submit@debbugs.gnu.org; Fri, 30 Apr 2021 11:53:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcVSb-000713-4d for 48008@debbugs.gnu.org; Fri, 30 Apr 2021 11:53:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49975) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcVSU-000200-06; Fri, 30 Apr 2021 11:53:38 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=40498 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lcVSS-0000vK-Qo; Fri, 30 Apr 2021 11:53:37 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87h7jv2xi7.fsf@gmail.com> Date: Fri, 30 Apr 2021 17:53:35 +0200 In-Reply-To: <87h7jv2xi7.fsf@gmail.com> (Oleg Pykhalov's message of "Sun, 25 Apr 2021 00:17:20 +0300") Message-ID: <87eeerbwg0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48008@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619798174; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=jw6uJyLODTnmKiHYtICgNRzMVV4EW8hbyVJZODXTD6U=; b=XemBVdauy4AsEry4PRF+W2vs9m6e5XEADym0ydo4VGL3WUaOY5J+rmcrw3hsyGE09Q7TF2 rxyo7GhIw5cif1nAkrExv46JiDxRS+h9govGHDrw5/+FZV6PBodXsaTjgkU7jhmCAd3vYk 7g42QKZYiGw7n2YzxmykEaPW4LPB5/NgqVMhpfrCLAcBiiizOIThwPiLCO6iIO75rjzmdW CRRVoK7HixfwUrLbUgQswea/Xw1Evd4eGpCV1RWkwBYdhkKoGYLQS9G1t9O0cdnuGhbg+i eupF3Jo/tX6DlhGBTHjTWafiHeqNbPR8hYNy0nXDhZ45SdisE3oxyO7m3VhtdA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619798174; a=rsa-sha256; cv=none; b=PEzqLkbTLwS/oIpYuxmPZqOoTVw4QXvOOIp106c2/duCydUYA2sXVAA6a7q9HzM+7G6c2P yt6U3OqsfUpEg7EImWnz8CjpGsSKBZfIejrpItIdJCXx/sySPtBd9/w9mCYqEJsCh9ALUu YmuDGQHzxl7GJlV/GxC0gxeSg1yZYaKa2US/ICyV5F7qbqhnhSB2cGe1zEYjMKEEZTy87l RqjhqZYxvMCF7amWBxo7tUGQHhfZ3QByBIfyLEWiP8skEwBEiHUvV563gikgkLj9x5sPvt 9VeuhPfaDaFS1HMsbmobiakEhiRJ8yC3ie76XVAdIYFrKROddVbWirRm/sRyUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: E89AD28CE7 X-Spam-Score: -2.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: dhj58D5CwQnH Hi Oleg, Oleg Pykhalov 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=3D5b7a1cb077931a020c0b7e3b12f12a7bda221d96 -= - 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 th= e type in the ODB What =E2=80=98guix=E2=80=99 is trying to tell us is that 5b7a1cb077931a020c0b7e3b12f12a7bda221d96 is not a =E2=80=9Ccommit=E2=80=9D = object: it=E2=80=99s a =E2=80=9Ctag=E2=80=9D (or =E2=80=9Cannotated tag=E2=80=9D) object. Instead, you should run: guix time-machine --commit=3Dd68de958b60426798ed62797ff7c96c327a672ac -- \ build hello=20 =E2=80=A6 where d68de958b60426798ed62797ff7c96c327a672ac is the commit this= tag points to (v1.0.1). That said, as a user, one certainly doesn=E2=80=99t care about this subtlet= y. It would be nice if (guix git) could automatically dereference annotated tags, though it doesn=E2=80=99t seem to be that simple (there are places wh= ere we explicitly ask for a commit object and we need to keep some sort of =E2=80=9Ctype checks=E2=80=9D on Git objects). Thanks, Ludo=E2=80=99.