From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oDWgB7hAB2SFGgEASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 14:48:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KIdsB7hAB2TL9AAAauVa8A (envelope-from ) for ; Tue, 07 Mar 2023 14:48:40 +0100 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 EEF0D36A89 for ; Tue, 7 Mar 2023 14:48:39 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iJcTRwkQ; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678196920; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZDDrv1kFuqVWJnv3pJeswXDFy8TEPHyzzL/unJ+Dfxs=; b=qQrj9Mh8/60vGZ8leXpzwLbKL5ldi61Fi1A8PVNKUxPRYq8VMZZuTTFRUL+uywUWYOwO4T zOZKvjMDO6q1ywpSMjlpf8jzCZ3nRCDMMS6SWUSfvYhmRCj0PnWbPESlRy5iHmj7t6cCNK EBskPbsCw0ZsQlyeNHoSf/uZ7K4058CN/etWQ52v6aKloMorewDmhAwM73sm5TI0OuPZTH 4IVdX3Cn/uvobCEZfsrkOl461CumLaeSEiIzCyZ1iQZmEAZiP2qojTBDbtLPLvvKH1QQze cO4vbWyBKDZ9KxiNb0ekYLP7dg4S4clyVjfBNvewHVHEkOaS2gbay6I286NMcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678196920; a=rsa-sha256; cv=none; b=t8vEC8h4mHOIYacMXO9NvwFQHqWre9znHiI/Ez4e7675zmvuQ/OU9k5JJIzVkg/5L+G9hS AkiL80+xiircFMeelaAjtbiZlCAGOJpbRGm277mWAh8syM+3THEsIIexbFv/kJnpYI07I6 Cor0X4W3KC1kAI19ZG5F76qbk1Ypab9Lj3pT1ODaT2PuNysDYHjrJsC54hMwGgNydJ2ME4 yasEhdoKpvsC3TkKa7vW55vfXMck60KkzRcTkXTPrex/CwH9pdgEP/Foow67LnYtb8rK/V eBTl9rpvABkkw/Vr3dktRKf/MQHr6DcYNQ2ZR2CD5wLOo1jxcA/LI0eKQ7PYow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iJcTRwkQ; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZXfX-0001Ci-Fu; Tue, 07 Mar 2023 08:47:55 -0500 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 1pZXfU-0001AB-5u for guix-devel@gnu.org; Tue, 07 Mar 2023 08:47:54 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZXfS-0006z4-Nm for guix-devel@gnu.org; Tue, 07 Mar 2023 08:47:51 -0500 Received: by mail-wr1-x433.google.com with SMTP id bw19so12147753wrb.13 for ; Tue, 07 Mar 2023 05:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678196869; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ZDDrv1kFuqVWJnv3pJeswXDFy8TEPHyzzL/unJ+Dfxs=; b=iJcTRwkQiGQ7R/aMyfS2ubrSR6ZIXkRiKkfFOaBZmt2Hz8qszMtnggxMEfJa+ldbet 2QtM/vRykY4M8h1NlOuRBCbLheyNgHseAKxD1es3f9imeYeqqF37wl3p4cMyZD7aXB6S +pYG1VXT/IjjgzB6RuBCqnwk2jxI2sUJ5wNKEDc9XLqexPWz6qVfaxiMe3azisi9wT1L Mel1ZItJSPBDpm52/3njxgFT2ekGNoIuoD7O/Hw8hkInwPkUFBLvvqfiRGyMbNtTBQmP DB0OqzNzP3v9ypC5iggodL/+YfN2tDGfXR/ARfvQ8NjwRGDytYz6kWgbGGKVQcy7mn0O Tzmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678196869; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=ZDDrv1kFuqVWJnv3pJeswXDFy8TEPHyzzL/unJ+Dfxs=; b=4eAJUe9GU48Pv3Tl8Uur8BOeCoeaWWQjs0SVcJcQzUMdDMAZyqIVVFV6s4RUFsqS8e sF2/ds69QPBxCYm5Lk8WrIcYszY5sxef6Vcy6g2YRcn5xRGJ91SjNBsoqyR+3ShDszHj fh1m5ZvUvXVFK2LaYSaM2ROkUOW+v/tDOrgtW48/Pn4VxX2R0b7GohBe46AI3Tf7r6HL 8ChzecEnrpWg3GbHeZrDBy1WJFSfES3RJYjVuYpXqUxhQ9rpwgwPxEXq7nA6Skrx/1mu US7WegFegdLlQpH9wRY+ctx8lJvnoch+3Mm9Aj+GRQnvVGLliw2CTCAIFG3AZRYjbZKk G8jQ== X-Gm-Message-State: AO0yUKWtrGJPfhi2pWR5/mOoOb1CauJIMPhTZYzIWF//8HF35+jr5lV4 4k3ZSS+m4mgeioJ8cuIWqby8b2lnToc= X-Google-Smtp-Source: AK7set/QB6dMfuNuyBDYf+Zveqz8JtPC42oiac3FHZW5xAUPMuBWqL/ZcJ93kH1s4Pih0boEP1UrIQ== X-Received: by 2002:a5d:4d8a:0:b0:2c7:1a96:efc2 with SMTP id b10-20020a5d4d8a000000b002c71a96efc2mr9561869wru.4.1678196868851; Tue, 07 Mar 2023 05:47:48 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id w12-20020a5d608c000000b002c552c6c8c2sm12712863wrt.87.2023.03.07.05.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:47:48 -0800 (PST) From: Simon Tournier To: Maxime Devos , Guix Devel Subject: Re: intrinsic vs extrinsic identifier: toward more robustness? In-Reply-To: <842cf5e6-ff29-ec08-2e6f-01708a6316e6@telenet.be> References: <87jzzxd7z8.fsf@gmail.com> <09d3d861-0390-3ce6-30c7-22a1e2685787@telenet.be> <86sfej0x1d.fsf@gmail.com> <842cf5e6-ff29-ec08-2e6f-01708a6316e6@telenet.be> Date: Mon, 06 Mar 2023 14:42:39 +0100 Message-ID: <86r0u2c7xs.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::433; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_24_48=1.34, 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 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: EEF0D36A89 X-Spam-Score: -8.74 X-Migadu-Spam-Score: -8.74 List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: ns/gkEX9DcCh Hi, On Mon, 06 Mar 2023 at 13:22, Maxime Devos wrote: >>> For git-fetch, the value of the 'commit' field is intrinsic (except when >>> it's a tag instead). >>=20 >> No, it is imprecise. The exception is *not* label tag as value for the >> =E2=80=99commit=E2=80=99 field but the exception is Git commit hash as v= alue. > > Are you referring to the fact that currently, the 'commit' field usually= =20 > contains a tag name, and that it containing a commit is the exception? Yes. > If so, that doesn't contradict my claim. There is no contradiction but imprecision. > I do not see how making a list of all identifiers helps with robustness=20 > -- you need the object the identifiers point to, not the identifier itsel= f. If you have the identifiers, you have a chance to find again the content. For example, in addition to NAR+SHA256, we could also store Git+SHA1 or plain SHA256 or something else. It would help in exploiting other content-address systems. For instance, SWH stores, "checksums": { "sha1": "3a48fbd0a69c7875dc18bd48a16da04d1512ed47", "sha1_git": "69cb76019a474330e99666f147ecb85e44de1ce6", "sha256": "e62e0f13f9025642a52f9fcb12ca0c31d5e05f78e97224f55b3d= 70d47c73b549" }, and maybe =E2=80=99sha256_nar=E2=80=99 soon. Somehow, we have a list of mi= rrors so why not similarly having a list of intrinsic identifier. > You are hashing the 'hello-2.12.1' directory Thanks! Having the noise too close and I missed the obvious. :-) Cheers, simon