GNU bug report logs - #63726
time-machine without options does not get the latest commit

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Simon Tournier <zimon.toutoune@HIDDEN>; dated Thu, 25 May 2023 18:34:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 63726 <at> debbugs.gnu.org:


Received: (at 63726) by debbugs.gnu.org; 26 May 2023 11:25:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 26 07:25:36 2023
Received: from localhost ([127.0.0.1]:48991 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2VZf-0008Ff-KV
	for submit <at> debbugs.gnu.org; Fri, 26 May 2023 07:25:36 -0400
Received: from mail-wm1-f44.google.com ([209.85.128.44]:38346)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1q2VZS-0008En-Jg
 for 63726 <at> debbugs.gnu.org; Fri, 26 May 2023 07:25:23 -0400
Received: by mail-wm1-f44.google.com with SMTP id
 5b1f17b1804b1-3f600a6aa00so770165e9.1
 for <63726 <at> debbugs.gnu.org>; Fri, 26 May 2023 04:25:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1685100316; x=1687692316;
 h=mime-version:message-id:date:references:in-reply-to:subject:cc:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=6qkzAYoHeV39gMsDycWSBHJhw1MU8DiQV8XpIJf+lQA=;
 b=gc9C74bxWgqZdpQjBS04/OlVAnQq5k03hZi8TMNUFTOxaHl0ZBjUDRYLbJWVSJwhMu
 QvB5Is9NJLqzTrClTFoRj8lyhD1GWWjWFO8UxOB5ZlelWLRr8aDDnlEP7ZngM9nhoRjJ
 iVpeuaqg2Kq1VNnTkzMTj2IQOyPRR9NbkTujPQ4aMm21hsX0TuqFRFZ0b9mUwA2QcV/7
 /pAdf/JJplt6tHmb5WBeH0aD5fzT3j4WicnW03kIXIz92dFhcsaBOm15jYPuP4hsYl3T
 U1egY6IN4en8mHtpOHQecVcfD2khTaPBDT6iTPZIAPHnZOLZhS1xADVbxlwVMpP+/HWE
 Fq6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1685100316; x=1687692316;
 h=mime-version:message-id:date:references:in-reply-to:subject:cc:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=6qkzAYoHeV39gMsDycWSBHJhw1MU8DiQV8XpIJf+lQA=;
 b=b+8FM3k3zLUk44upHJpxWMkcwgggGExFSgyZlw7LZVijNaQZDNLVQ4FFVkOXxii1aO
 hYbeyT7n6ItK1Tf64fnKpm4LgOIfU9hEvVDmfZ7kvhkaCxnuIBtVLwJkAG/Y+VJlMnmg
 7rhYKhadZuyWaMyx3VOgetwnc+RwCqidi3NCIUxGlJu+OhNC+zk0V69Es9WgMe2VGX6E
 k7s+YuVg4hZVv0vORaXCKnRRfwaFwxENGrfPK11vX7v7C0fsyHwmu3E8BdHdyVUPNyuH
 Tl124joBncWFtjOdD7knUcX3evOw9iACXSKnJ8WO4dr1FF1CB+7NynShe57u2Tx1L7el
 Y9ag==
X-Gm-Message-State: AC+VfDx7014BELLZqf3iJUNpUQ8GOxA0QYF+chnsAac58DISCHYo8HNr
 e/sTHGzqYEbeazk5EwW0yhxrfcsX5cA=
X-Google-Smtp-Source: ACHHUZ6BKYByyfGYp4nMn8PdSlx4L5vsi9Nqz1fWEGXl9lZMESeRs7fyadmmzQnnA6IscPxkzjwKzg==
X-Received: by 2002:a05:600c:3ba6:b0:3f1:7490:e595 with SMTP id
 n38-20020a05600c3ba600b003f17490e595mr1411632wms.2.1685100316452; 
 Fri, 26 May 2023 04:25:16 -0700 (PDT)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 r8-20020adfdc88000000b003077f3dfcc8sm4699744wrj.32.2023.05.26.04.25.15
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 26 May 2023 04:25:16 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#63726: time-machine without options does not get the latest
 commit
In-Reply-To: <875y8gcedh.fsf@HIDDEN>
References: <87v8ggwmat.fsf@HIDDEN> <875y8gcedh.fsf@HIDDEN>
Date: Fri, 26 May 2023 11:31:01 +0200
Message-ID: <874jnzv3qi.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 63726
Cc: Konrad Hinsen <konrad.hinsen@HIDDEN>, 63726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

On jeu., 25 mai 2023 at 23:03, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

> I had to check the code, but =E2=80=98guix time-machine=E2=80=99 follows =
the same logic
> as =E2=80=98guix pull=E2=80=99: it reads ~/.config/guix/channels.scm, and=
 so on (that=E2=80=99s
> the =E2=80=98channel-list=E2=80=99 procedure).

--8<---------------cut here---------------start------------->8---
$ cat ~/.config/guix/channels.scm
(use-modules (guix ci))

(list (channel-with-substitutes-available
       %default-guix-channel
       "https://ci.guix.gnu.org"))

$ guix time-machine -C ~/.config/guix/channels.scm -- describe
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or=
g/git/guix.git'...
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
 compute-guix-derivation  1013B                                            =
                                        373KiB/s 00:00 =E2=96=95=E2=96=88=
=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=
=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=
=88=E2=96=8F 100.0%
Computing Guix derivation for 'x86_64-linux'... \
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
  /gnu/store/80sisjhmmb0sbvyylavm3c2rgjnhypw2-profile.drv
  /gnu/store/3213n6v442d1zv17xidg8s48hx02f433-guix-daemon.drv
  /gnu/store/77k19wqklyw4gvxqjjdg8ah4k9llb5c0-guix-command.drv
  /gnu/store/3cyv2vdk3v0asjqbspzlgbzibk1f50p2-guix-system-tests-modules.drv
  /gnu/store/9pq5bivbzg476svaqv38xjgwyhg0ml2k-guix-cli-core-modules.drv
  /gnu/store/gpjmcxvr10fnzjvkwr7yf2wpyrzyb5nm-guix-packages-base-modules.drv
  /gnu/store/gqamr3s5amc1ayqa4xbzv114zy6l8ac8-guix-system-modules.drv
  /gnu/store/xv2yv334dpxvq8bw605avhcf6dv0smyp-guix-home-modules.drv
  /gnu/store/yya1dwvx7svj588vnqznabqaa2ahv4a3-guix-cli-modules.drv

[...]

building profile with 1 package...
  guix 849286b
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 849286ba66c96534bddc04df1a47d5692cbc977e

$ guix time-machine -- describe
  guix 849286b
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 849286ba66c96534bddc04df1a47d5692cbc977e

$ mv ~/.config/guix/channels.scm /tmp/channels.scm

$ guix time-machine -C ~/.config/guix/channels.scm -- describe
guix time-machine: error: failed to load '/home/simon/.config/guix/channels=
.scm': No such file or directory

$ guix time-machine -- describe
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or=
g/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to 3299b40 (36 new commits).=
..
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
 compute-guix-derivation  1016B                                            =
                                        168KiB/s 00:00 =E2=96=95=E2=96=88=
=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=
=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=
=88=E2=96=8F 100.0%
Computing Guix derivation for 'x86_64-linux'... -
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
  /gnu/store/4gm2ay6gjsjq6iclmbm4jqnvja12axy2-profile.drv
  /gnu/store/7b50p1xnh4r5ahfj4da8yb8xgzqdjsyv-guix-daemon.drv
  /gnu/store/qgcnzghwqxkak53rhnggl73d6r1jkq4q-guix-command.drv
  /gnu/store/1spf6ndyz62izy3xgr9v5jnjin305s2v-guix-cli-core-modules.drv
  /gnu/store/3fib3w2cjl83r75zfllby6wp3znh362p-guix-system-tests-modules.drv
  /gnu/store/7vn6pq6j5psjwlcgvl1nbgwlspamx1wx-guix-home-modules.drv
  /gnu/store/9qr483y1law33nqdwz7bjr32sbkka2xw-guix-cli-modules.drv
  /gnu/store/iq10xaghbj6435w4c6nmyqb3kwzs119f-guix-packages-base-modules.drv
  /gnu/store/wzssfkmqywrqm86vjlyxzpf26d4h30qd-guix-system-modules.drv

[...]

building profile with 1 package...
  guix 3299b40
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 3299b40b3599371890816b52d65a6a5ada1b1131
--8<---------------cut here---------------end--------------->8---

Hum.  Now, I am not seeing anymore e499cb2.  Related to #63667 [1]?

1: https://issues.guix.gnu.org/issue/63667


> Should we fix the doc or should we fix the code?=E2=80=A6

What about this patch?


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-doc-Reword-guix-time-machine-without-option.patch
Content-Description: doc.patch

From 63b862ed9f3d3b019af3c6926bc1737f573bdfe6 Mon Sep 17 00:00:00 2001
Message-Id: <63b862ed9f3d3b019af3c6926bc1737f573bdfe6.1685093404.git.zimon.toutoune@HIDDEN>
From: Simon Tournier <zimon.toutoune@HIDDEN>
Date: Fri, 26 May 2023 11:26:32 +0200
Subject: [PATCH] doc: Reword guix time-machine without option.

* doc/guix.texi (Invoking guix time-machine): Reword the behaviour in the
absence of any option.
---
 doc/guix.texi | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 31dc33fb97..54f8a20196 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -4958,16 +4958,20 @@ Invoking guix time-machine
 @xref{Channels} for more information.
 @end table
 
-As for @command{guix pull}, the absence of any options means that the
-latest commit on the master branch will be used.  The command
+Similarly as @command{guix pull}, the absence of any options means that
+either the user's @file{~/.config/guix/channels.scm} file, or either the
+system-wide @file{/etc/guix/channels.scm} file, or either the built-in
+default channels specified in the @code{%default-channels} will be
+honored, in that order.  The command
 
 @example
 guix time-machine -- build hello
 @end example
 
-will thus build the package @code{hello} as defined in the master branch,
-which is in general a newer revision of Guix than you have installed.
-Time travel works in both directions!
+will thus build the package @code{hello} as defined by the previous
+@dfn{channels} file (@pxref{Channels}).  In general, it builds a newer
+revision of Guix than you have installed.  Time travel works in both
+directions!
 
 Note that @command{guix time-machine} can trigger builds of channels and
 their dependencies, and these are controlled by the standard build

base-commit: 99fc7e5dd3c9c92f9b6c2e51db9dc5b0481a56b2
prerequisite-patch-id: 7ff5f10954ba2e9663c6e7b15e7aee448c8b74c2
prerequisite-patch-id: cb31c4d7ad8d27df155dcf57b61116048a6b0681
prerequisite-patch-id: f256649d0fac1d618b07615c97c46e66436b9262
-- 
2.38.1


--=-=-=
Content-Type: text/plain



Cheers,
simon

--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#63726; Package guix. Full text available.

Message received at 63726 <at> debbugs.gnu.org:


Received: (at 63726) by debbugs.gnu.org; 26 May 2023 11:15:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 26 07:15:38 2023
Received: from localhost ([127.0.0.1]:48970 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2VQ2-0007tG-MJ
	for submit <at> debbugs.gnu.org; Fri, 26 May 2023 07:15:38 -0400
Received: from out3-smtp.messagingengine.com ([66.111.4.27]:57927)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.hinsen@HIDDEN>) id 1q2VQ0-0007t3-OT
 for 63726 <at> debbugs.gnu.org; Fri, 26 May 2023 07:15:37 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id 8D8695C02A3;
 Fri, 26 May 2023 07:15:31 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute3.internal (MEProxy); Fri, 26 May 2023 07:15:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h=
 cc:cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm1; t=
 1685099731; x=1685186131; bh=ERX896YxRti96QzdIhOWaWf7tVf7qi25eC9
 TqXFh2bo=; b=X+HY8tPhFz4BF3yeQ9JeKQHy52eXihyPlGrBJiJ0AqCCQph5Lo2
 fDJMCPYGJu5eYxFE/lv5Uka23ifqCoIrEMMFwm7Ti317hZmFzTSxgYk3ozj4CZZc
 fig5k3WsFsyb0Qel+OTklNUSVewQwe3PhHDs3YK7qUNVvh7HEl8/J97TJ0szc2Eo
 s6avTYLkXQ6fhRvXyDCdZJk0LJJuslIWWsjfMu8KYxDMxIpjreR9FDEhs/1VaLRJ
 Ev3MKUQaLK/9LQiuN5e+CmnLnENxOBhrL+5am6E6HhHSIgj82U//zQ+mh+qui1cf
 EXR5LDdAL6gXNjckz7bFo3sKjKEs6KHiReg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1685099731; x=1685186131; bh=ERX896YxRti96QzdIhOWaWf7tVf7qi25eC9
 TqXFh2bo=; b=eK1iCj9Qqupa2iYH2mtVV8eWvLox6P2rYLdNU0BIZlFfJ6Kqlm/
 eEB/3jEvgx/h5YEyovETRDm3MxrPMF1A6ySJXjMr64aKF2o/yasERuCZQYgifA+X
 Gc7DDVlV05DSzzC6AYxGZVvT+qMZOtdKdipZDjvOU0SeyGvRLDR/rMBfPFkGBDGK
 VTvkYOFnIU3nChkQ3Oq8WAptB3zNFrlFC8h7ALkumpL6ZbVheV6H85/5JcexVewj
 Iq0sRcWtzBGMNURkr5cma833Lv15bQQRV/e3xQLG0cUfb//RdEdekAtU1mq9DFUI
 22WIhjvvjU/e/4UwHkBf753DpOt1SrEcCwg==
X-ME-Sender: <xms:05RwZB0__6xlY3H3T0qI9ivnhOlRQ7u171YYpn5eIpYIb_DEhyhVWg>
 <xme:05RwZIEJFJgI1-KTw7cNxGujKQf8WraS8xZPcXt4_nallfqkvNSN8V_GyGKtSdWHp
 LFELtTu8YqFGtOA>
X-ME-Received: <xmr:05RwZB5KXllDN-eBNYAc7ikBtRHPdoWnn3bAE3AThYfkDVkwNUEN0DYOgYe94phl9a7raAYxeiI>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejledgfeeiucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvvefujghffffkgggtgfesthhqredttddtjeenucfhrhhomhepmfhonhhr
 rgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnh
 gvtheqnecuggftrfgrthhtvghrnhepieehvdelhedujeejvdefudehieeifeegueeiieeg
 teehffduleelgfegueeifeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe
 hmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvght
X-ME-Proxy: <xmx:05RwZO3uR2ACYRAoyfjU7aDKWo7An77iOs7X9C1I72yb7WJzdvSa2g>
 <xmx:05RwZEFtCaS3eRQ55hb1Rbe23FJOx5glzWA49o2t6RyITta_uKTO_g>
 <xmx:05RwZP-G_ubEjfcHehZlCDS7qLKJqzDDB8elgEy1N9a7TUMpCDTsCQ>
 <xmx:05RwZJSBQuamirip2egouC9Eh4otjAzl_GFxbCkFXJrlqvqTw09fpA>
Feedback-ID: i184641e2:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 26 May 2023 07:15:30 -0400 (EDT)
From: Konrad Hinsen <konrad.hinsen@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Simon Tournier
 <zimon.toutoune@HIDDEN>
Subject: Re: bug#63726: time-machine without options does not get the latest
 commit
In-Reply-To: <875y8gcedh.fsf@HIDDEN>
References: <87v8ggwmat.fsf@HIDDEN> <875y8gcedh.fsf@HIDDEN>
Date: Fri, 26 May 2023 13:15:28 +0200
Message-ID: <m1fs7j2vjj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 63726
Cc: 63726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi,

> Should we fix the doc or should we fix the code?=E2=80=A6

I vote for fixing the doc. Two reasons:

 1. Having "guix time-machine" and "guix pull" behave in the same way
    is desirable. Less cognitive load for users.

 2. What the doc says cannot be implemented in general. "The latest
    commit on the master branch" makes no sense for a setup with
    multiple channels, some of which may not even have a branch called
    "master".

Cheers,
  Konrad.




Information forwarded to bug-guix@HIDDEN:
bug#63726; Package guix. Full text available.

Message received at 63726 <at> debbugs.gnu.org:


Received: (at 63726) by debbugs.gnu.org; 25 May 2023 21:04:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 25 17:04:04 2023
Received: from localhost ([127.0.0.1]:48270 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2I7w-0007M8-0Z
	for submit <at> debbugs.gnu.org; Thu, 25 May 2023 17:04:04 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42210)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1q2I7u-0007Lf-UT
 for 63726 <at> debbugs.gnu.org; Thu, 25 May 2023 17:04:03 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1q2I7p-0006kr-Ka; Thu, 25 May 2023 17:03:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=o+oZiHdO7lKUib63XD0PLkzEzO5tXD3Gf47PLzkuPGM=; b=KNXRaD4kxyrQeAs0iFSW
 E4YTdnj/Q0ijpuA+vHhcbsQpANAkNmAO3q8XypkLGvVWYEoehHyVLB9gNnhT+Vlb4yzE8i0nqhbgX
 zrmOLe2EcUCMH5E7TvwK6hSBs9o6ju8z9sfw9iHHWpXKbTsHa8Igg4dnx+PiL0uAGrMgZ27emc6jj
 /JIL9iG5j2I3DppXzL5Pr+/cswdvwgSXnhdGOIr6BXAAEagYhCbgNFkkwP3zBLLQzPNIvatK/ebdx
 MFSnM12o6dFaorOigewKTXJ+2MiY/320Y7gYo5sftjNFt0tHioELTr/iNnmPhrYmjBbz+/uaBsjTN
 1jjvacIn/rOOqw==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1q2I7p-0008DO-7w; Thu, 25 May 2023 17:03:57 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: Re: bug#63726: time-machine without options does not get the latest
 commit
References: <87v8ggwmat.fsf@HIDDEN>
Date: Thu, 25 May 2023 23:03:54 +0200
In-Reply-To: <87v8ggwmat.fsf@HIDDEN> (Simon Tournier's message of "Thu, 25
 May 2023 15:52:26 +0200")
Message-ID: <875y8gcedh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 63726
Cc: Konrad Hinsen <konrad.hinsen@HIDDEN>, 63726 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Simon Tournier <zimon.toutoune@HIDDEN> skribis:

> Now, what I am missing.  The manual says:
>
>        As for =E2=80=98guix pull=E2=80=99, the absence of any options mea=
ns that the latest
>     commit on the master branch will be used.  The command
>
>          guix time-machine -- build hello
>
>        will thus build the package =E2=80=98hello=E2=80=99 as defined in =
the master branch,
>     which is in general a newer revision of Guix than you have installed.
>     Time travel works in both directions!
>
> and I get:
>
> $ guix time-machine -- describe
>   guix e499cb2
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     commit: e499cb2c12d7f1c6d2f004364c9cc7bdb7e38cd5
>
>
> But I do not understand from where this commit hash is coming from.  And
> please note that this commit seems coming from my previous experiments
> reported in #63667 [1].
>
> Well, the last commit seems a9cde26133b,

I had to check the code, but =E2=80=98guix time-machine=E2=80=99 follows th=
e same logic
as =E2=80=98guix pull=E2=80=99: it reads ~/.config/guix/channels.scm, and s=
o on (that=E2=80=99s
the =E2=80=98channel-list=E2=80=99 procedure).

I must say I=E2=80=99m surprised, but it=E2=80=99s always been this way.

Should we fix the doc or should we fix the code?=E2=80=A6

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#63726; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 May 2023 18:33:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 25 14:33:51 2023
Received: from localhost ([127.0.0.1]:48093 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2FmZ-0000DG-0a
	for submit <at> debbugs.gnu.org; Thu, 25 May 2023 14:33:51 -0400
Received: from lists.gnu.org ([209.51.188.17]:40466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1q2FmX-0000D8-R0
 for submit <at> debbugs.gnu.org; Thu, 25 May 2023 14:33:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1q2FmX-0000GY-Fr
 for bug-guix@HIDDEN; Thu, 25 May 2023 14:33:49 -0400
Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1q2FmV-00035b-Nc
 for bug-guix@HIDDEN; Thu, 25 May 2023 14:33:49 -0400
Received: by mail-wm1-x335.google.com with SMTP id
 5b1f17b1804b1-3f60a7e132aso4783965e9.0
 for <bug-guix@HIDDEN>; Thu, 25 May 2023 11:33:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1685039625; x=1687631625;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=jFC/VZsAVH+v0QZe1TLc1QAO2/zG3C9fKdfxTPxO5i0=;
 b=XVhbfXynaKWd/iVsghP4VWR91H5RDg61C3hAMYCR330WvhSfryySS/oHJoBVpo7Hge
 6GqglVe0WjHFCOa3OMfCXsHBRmEO3j9WnCnp+vDV1JOyS+vnZiCiTg5RHjNeYkYo9LB2
 M4VrdoRhqh4b2r3SKXUGohD0fBOD/ZrIFQH7HFoVP+YFVAelQRt/jMXQLu0Z9DKyOGcQ
 yFUYoKCJrUwEORXumA3hCYqiMjiDxE2EsNv2w+bqOy9sxhAeEygu+Q3vpAjW7wcWd81b
 nNjPR8bcwLhPyqxMyyTm5EPN/RAYh5RbAQwcyD4AvAyVRbXVucQnOLrPxZQQoWsj9pM8
 7fLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1685039625; x=1687631625;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=jFC/VZsAVH+v0QZe1TLc1QAO2/zG3C9fKdfxTPxO5i0=;
 b=SQOasCKsSvQ5sGpFGItYbJajrcl4EXsKszdIiV1dJTstduxBKvI0iiCqGwLq5kI2P2
 Jwr2kS8IF291CnfmKhDL1Bqxw8CUB8t6U5R9Neb0DnBNddP2fu3WbbJI9lSVi0UMlTG6
 H9n3v2gqv/zu+5NdoeJ453WDZaWePttIgPGk7QR163CCWbB2yECZ8RY1qQiZOCcSzS+x
 ejvqgGgOvFrVH4RZCRkZ4xroFytPKKhyyYXLJubWlYHImCH1xM/dMaF6cVRa9BZ32drG
 Bory6uO7K4uD0YHG3+noRgOk1kPDBMBArFJyRkOyGcl/8yP6jL9nGyc+cNVD4XX+9DkI
 IWEA==
X-Gm-Message-State: AC+VfDzYCk6/DqG6CCuQ/otWXF5EPTaXI/zxzxaDra/qCG+8wyNdVHBr
 3dtt3DcCcDo//EuQMq5jC5HoCe7I5zs=
X-Google-Smtp-Source: ACHHUZ5dCL+wQ1/nE4lpWQd9ie6bA5L8qwDRUMGLTkT5/LYCBx+Wc2n8xFaiWFmI35z5fKOMKa3xfQ==
X-Received: by 2002:a05:600c:3c86:b0:3f5:f543:d81f with SMTP id
 bg6-20020a05600c3c8600b003f5f543d81fmr15506176wmb.3.1685039625024; 
 Thu, 25 May 2023 11:33:45 -0700 (PDT)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 n5-20020a5d51c5000000b003064088a94fsm2576422wrv.16.2023.05.25.11.33.44
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 25 May 2023 11:33:44 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: bug-guix@HIDDEN
Subject: time-machine without options does not get the latest commit
Date: Thu, 25 May 2023 15:52:26 +0200
Message-ID: <87v8ggwmat.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::335;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wm1-x335.google.com
X-Spam_score_int: -4
X-Spam_score: -0.5
X-Spam_bar: /
X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592,
 DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.3 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.3 (-)

Hi,

Well, I do not know if it is a bug or if I misuse something.  Feel free
to close if I am missing a point.

--8<---------------cut here---------------start------------->8---
$ guix describe
Generation 25	mai 19 2023 13:30:14	(current)
  guix 14c0380
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 14c03807ba4bc81d42cf869f5b827f7da54ff843

$ git -C ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27sh=
j7apsnalwq log --oneline -1
14c03807ba4 (HEAD -> master) gnu: ruby-3.2: Upgrade to 3.2.2 [fixes CVE-202=
3-{28755, 28756}].
--8<---------------cut here---------------end--------------->8---

Well, that=E2=80=99s just a luck that both commit hash matches.

Now, what I am missing.  The manual says:

       As for =E2=80=98guix pull=E2=80=99, the absence of any options means=
 that the latest
    commit on the master branch will be used.  The command

         guix time-machine -- build hello

       will thus build the package =E2=80=98hello=E2=80=99 as defined in th=
e master branch,
    which is in general a newer revision of Guix than you have installed.
    Time travel works in both directions!

and I get:

--8<---------------cut here---------------start------------->8---
$ guix time-machine -- describe
  guix e499cb2
    repository URL: https://git.savannah.gnu.org/git/guix.git
    commit: e499cb2c12d7f1c6d2f004364c9cc7bdb7e38cd5
--8<---------------cut here---------------end--------------->8---

But I do not understand from where this commit hash is coming from.  And
please note that this commit seems coming from my previous experiments
reported in #63667 [1].

Well, the last commit seems a9cde26133b,

--8<---------------cut here---------------start------------->8---
$ git -C ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27sh=
j7apsnalwq log origin/master --oneline -1
a9cde26133b (origin/master, origin/HEAD) gnu: Add mouseloupe.
--8<---------------cut here---------------end--------------->8---

Therefore, let create a Guix revision:

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=3Da9cde26133b -- describe
  guix a9cde26
    repository URL: https://git.savannah.gnu.org/git/guix.git
    commit: a9cde26133bd98498869a3528d9dff0d3f456a96
--8<---------------cut here---------------end--------------->8---

However, still this e499cb2 one:

--8<---------------cut here---------------start------------->8---
$ guix time-machine -- describe
  guix e499cb2
    repository URL: https://git.savannah.gnu.org/git/guix.git
    commit: e499cb2c12d7f1c6d2f004364c9cc7bdb7e38cd5
--8<---------------cut here---------------end--------------->8---

Cheers,
simon


1: https://issues.guix.gnu.org/issue/63667




Acknowledgement sent to Simon Tournier <zimon.toutoune@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#63726; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 May 2023 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.