From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YI3oENsJ+WSKXAAAauVa8A:P1 (envelope-from ) for ; Thu, 07 Sep 2023 01:23:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YI3oENsJ+WSKXAAAauVa8A (envelope-from ) for ; Thu, 07 Sep 2023 01:23:07 +0200 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 5F5913EB12 for ; Thu, 7 Sep 2023 01:23:06 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=hTSBraxI; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694042586; 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:dkim-signature; bh=0yiov2MK9iLD2kXBD5M9GHSoF097TEveFDEoFMqIPQA=; b=ph0fD+Osu9ChApU5edeJCTnqvOuBX+Oc24PcMBaUwAmTLxwgqHAkVE8LMJl7wViDENuAqy xii0Hk6WsrLpl1CVV6SfjTkXCVewnJRQpFGMQuhupL0Y8aYGuN6YBDPziX2R6DbFeSA+u9 gnJf6BSt28RGWPg3U1dh3bPTgHpbgHF1MfM278+WFY0YNxWgFMB9uIleJxOpWeqLr/nWq7 tUKZT8cS58wcm+UQM9/k/CvKnl2khR0ZD2RLkHPjvUOd7wvtDv/BEdaGU1yi9NZPWTGFuG D9S5O3Iep3T2BSQKcC9+VLSf75Y/zZfwzvdxEk6f4AKDMA6XlHvifRcTMf+qzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694042586; a=rsa-sha256; cv=none; b=t4WEObmUhVHtn+eE9RVZol83rAJQleMUWDN47JykGrZV4DG11xRcNE+4FjJPNG2d/5WXi6 MHhd/c5CHg8SOzt9x7ejXYcPBm1mo7lANFsc12OZ4slZVPFM8fFasyn7BA4w7Rk/L2EcJS EjlavUPfhGH/sn94orgG3g0T3u8ay7sU9mymlJdGYtRWUQn3YoO3BDSwZDgH4ak8wkTvyU SyhAqvsAc68yWbv5PAi3FJQfKy6ITaFOixzjjqAHloUaxwrzcr2uzOmyUTCCEk/tBCgYHO 91mrRdbcg/28V6oaJ+u/Xgt6Yfq//6umXLbuWSf1C6oZ8sXG642nvKMX4cOoDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=hTSBraxI; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qe1rT-0001Ue-Qe; Wed, 06 Sep 2023 19:23:03 -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 1qe1rR-0001UH-1o for guix-patches@gnu.org; Wed, 06 Sep 2023 19:23:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qe1rQ-0007OJ-QK for guix-patches@gnu.org; Wed, 06 Sep 2023 19:23:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qe1rR-0002gV-QH for guix-patches@gnu.org; Wed, 06 Sep 2023 19:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65352] time-machine, unavailable network or Savannah down Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Sep 2023 23:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65352 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 65352@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 65352-submit@debbugs.gnu.org id=B65352.169404252610248 (code B ref 65352); Wed, 06 Sep 2023 23:23:01 +0000 Received: (at 65352) by debbugs.gnu.org; 6 Sep 2023 23:22:06 +0000 Received: from localhost ([127.0.0.1]:38133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qe1qW-0002fB-PL for submit@debbugs.gnu.org; Wed, 06 Sep 2023 19:22:06 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:41329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qe1qR-0002ee-8m for 65352@debbugs.gnu.org; Wed, 06 Sep 2023 19:22:03 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-401e6ce2d9fso920435e9.1 for <65352@debbugs.gnu.org>; Wed, 06 Sep 2023 16:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694042512; x=1694647312; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=0yiov2MK9iLD2kXBD5M9GHSoF097TEveFDEoFMqIPQA=; b=hTSBraxI3eI1zLYtHLYVlwyfQSFwykszPYGjMPZOhjyzUu1dspdAnmEpOzwESCfRss 2Tr5SfcHz2gJEIRTZAmk1/Ka7fawjwP+ghxh4SgZoH5RTLF8L0cb2nJzbGUlsJJDqH+n BF2uR7gAjE5C9M/qM2568PzvwwnuuwT1G0kxmMFBAU9SIZULdKm7RRJSB/RIjRnY0JrZ 3M05WGtBfpZz8Hsz8tZb6IbuhI+VW13XnTj8EImQNR2mgRawQIY1PgxTg3oyOKFOX3JN e2AKIyLNNfGpSZ7TWtr3v+63Jm86tn0S6vj+4sQbv0HOsOrJUGnO+BEySVFUVkAP//Db O34w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694042512; x=1694647312; h=content-transfer-encoding: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=0yiov2MK9iLD2kXBD5M9GHSoF097TEveFDEoFMqIPQA=; b=J3dVHrSw3KutNpXiXNmGmtqsuQC37hIhtrCM6FjwRRmPJJ2Qrgf+jEJvoFgMHzeFDq kD+ie3EfZ5N0fatpm+Iy94tEwZrlY6XxTm7mGpEpvokwBr8ImUHTj90GNHoZz6ckPvWO KdrKM9mA9MifKGsO5NZv1SjUX4OtSjIzadnwMuEhRThNAzBQ7kdTvfwCrRs4r2h94C3w uNCYRnBtIL9h+WH+N/NcI9h7h5WO3hZNB1NOrEnA/H3c6G2j05CMQzZ+dN2oU5iKO3jy 4wv6nlREyDQ5af6aspVETavJrG3QSjayjmZ5itA3sP7rrwY0pbzqnnBoFdKd2vaLxFxu wGPw== X-Gm-Message-State: AOJu0Yx4HDukOaOtXwld/0Y3XMLgvZ8ecN0AveACxDIEsEgBtfGYYy95 tg/sXIHHjjAudQxAepaTQlc= X-Google-Smtp-Source: AGHT+IEu0/hcC4KgOoDZa7UilVkJSefH/LPwY7B6NS8FNX+5QI1IzMPLISN3owNnESAN6GAa6UEA5A== X-Received: by 2002:a05:600c:3b83:b0:3ff:c342:f296 with SMTP id n3-20020a05600c3b8300b003ffc342f296mr13914039wms.1.1694042511820; Wed, 06 Sep 2023 16:21:51 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id y25-20020a05600c365900b003ffca80edb8sm816090wmq.15.2023.09.06.16.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 16:21:51 -0700 (PDT) From: Simon Tournier In-Reply-To: <871qfb5hcq.fsf@gmail.com> References: <86ledjoaly.fsf@gmail.com> <871qfb5hcq.fsf@gmail.com> Date: Thu, 07 Sep 2023 01:21:46 +0200 Message-ID: <86a5tyopkl.fsf@gmail.com> 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -3.62 X-Migadu-Queue-Id: 5F5913EB12 X-Migadu-Spam-Score: -3.62 X-TUID: xGW92XCoQlTb Hi, On Wed, 06 Sep 2023 at 13:41, Maxim Cournoyer w= rote: > So all the refs such as commit(ish) or tags would be referenced locally, > and branches such as 'master' would still trigger an update. That=E2=80=99s the intent of this patch: [bug#65352] [PATCH v2] DRAFT git: Avoid touching the network unless= needed in 'reference-available?'. Simon Tournier Wed, 06 Sep 2023 16:17:08 +0200 id:32d3fb5066e0b20e200dabef0fba897634e21dda.1694009405.git.zimon.to= utoune@gmail.com https://issues.guix.gnu.org//65352 https://issues.guix.gnu.org/msgid/32d3fb5066e0b20e200dabef0fba89763= 4e21dda.1694009405.git.zimon.toutoune@gmail.com https://yhetil.org/guix/32d3fb5066e0b20e200dabef0fba897634e21dda.16= 94009405.git.zimon.toutoune@gmail.com > LGTM, but I'd be curious to hear what Ludovic thinks, since their > original code treated tags as mutable (which they technically are, but I > agree to the value of treating them as immutable, and it appears low > risk to me). Do we have an use-case where tags are mutable? To my knowledge, the Guix remote tags have always been immutable. Do we have one counter-example? Well, here an attempt for a scenario with mutable tags =E2=80=93 although I think that=E2=80=99s a corner case considering the current state for manipulating Guix cache checkouts. I am using Guix 6113e05, nothing about the patch I am proposing. :-) $ cp -r ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj= 7apsnalwq /tmp/guix,git $ guix time-machine -q --commit=3D4a027d2 --url=3D/tmp/guix.git -- describe So far, so good. Let add one tag. $ git -C /tmp/guix.git tag -a mutable -m "some tag" 4a027d2 $ git -C /tmp/guix.git tag -l mut* And=E2=80=A6 $ guix time-machine -q --commit=3Dmutable --url=3D/tmp/guix.git -- describe guix time-machine: error: Git error: reference 'refs/tags/mutable' not found =E2=80=A6bang! Well, the basic Git tags does not seem supported by the Guile-Git =E2=80=99remote-fetch=E2=80=99 procedure. I have not investigated more. M= aybe I am missing something. My opinion is to stay focused on the current real annoyances first and not try to fix another hypothetical use-case which seems already buggy. Ludo, WDYT about the proposed patch? Does it work for your use-cases? Cheers, simon