From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 14:33:51 2023 Received: (at submit) by debbugs.gnu.org; 25 May 2023 18:33:51 +0000 Received: from localhost ([127.0.0.1]:48093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2FmZ-0000DG-0a for submit@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 ) id 1q2FmX-0000D8-R0 for submit@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 ) id 1q2FmX-0000GY-Fr for bug-guix@gnu.org; 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 ) id 1q2FmV-00035b-Nc for bug-guix@gnu.org; Thu, 25 May 2023 14:33:49 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f60a7e132aso4783965e9.0 for ; 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 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 11:33:44 -0700 (PDT) From: Simon Tournier To: bug-guix@gnu.org Subject: time-machine without options does not get the latest commit Date: Thu, 25 May 2023 15:52:26 +0200 Message-ID: <87v8ggwmat.fsf@gmail.com> 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@gmail.com; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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