From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MD7IN2cBfGGyWwEAgWs5BA (envelope-from ) for ; Fri, 29 Oct 2021 16:12:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uBxXM2cBfGGEDwAAbx9fmQ (envelope-from ) for ; Fri, 29 Oct 2021 14:12:55 +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 81F9CADA7 for ; Fri, 29 Oct 2021 16:12:55 +0200 (CEST) Received: from localhost ([::1]:58314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgSco-00051d-L3 for larch@yhetil.org; Fri, 29 Oct 2021 10:12:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgScc-0004zO-5i for guix-devel@gnu.org; Fri, 29 Oct 2021 10:12:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgScb-0005oN-JL; Fri, 29 Oct 2021 10:12:41 -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=k2orjFUa8IcAXFriKkKnD8AWHI47mAa+JmsswDUnyEo=; b=rEJs4yvjsSEuX8KMpmi4 YVTX1c+3/kVbFAZzY5YZ6FQzWr5OhXEwchkwyUnOA2SJf2xZWA0TPvf2VfRRyzxZKgDURCgw+ukjQ vRL4+4aGQbOSq8wKN7w5aim4d38qd2acSUKzdAaHaXC1oxNrJ9mW9n6OZZR0N/QSMVYprv9ltOGRk UYDzyuBwbxnABp3eLw3QytAjproUVqPqwQR9k606zs8b5MYxOzuUGySohlwFim3Mhr1iBJO1F94cf mRidej7vueIxxllWrcLrn4/rf8Sm/r2nC1BtZ8uL+XIXJzZmS4EFDMLx+0m/NYnlm07QH03J7OdPz 2yu0VrjpUCaMKQ==; Received: from [193.50.110.158] (port=55576 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgScb-0007CZ-6T; Fri, 29 Oct 2021 10:12:41 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Mutable Git tags & Software Heritage References: <87o87jjx54.fsf@ngyro.com> <87a6j2w1et.fsf@gnu.org> <86ilxpzeap.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Brumaire an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 29 Oct 2021 16:12:38 +0200 In-Reply-To: <86ilxpzeap.fsf@gmail.com> (zimoun's message of "Fri, 22 Oct 2021 09:53:02 +0200") Message-ID: <87mtmr2a3t.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: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635516775; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=k2orjFUa8IcAXFriKkKnD8AWHI47mAa+JmsswDUnyEo=; b=Iqf9R+gQJh9wNIXv2uwz42KuZ7PgpB+Uczun4sxzk+uOJvz43qwUFsIZ7Z9VW0ZCgOs1kO i0g6R2JpSkHjcVYaQZD5HMdlPaJVaMINNNs0TKNfFdX8C2DiXs2/qXNhJbGsHBioVeD16+ Jbb6oBG2LPfvrbR3kVxWl/9Lq2ic+4CXIrNlRogHqaxngd2l6/1J94LppVQu5ZOP7VGPtk dwXfuKi4QhkY2T9uDP92z3ObiHwcsvPskfBcD0yKRgJaW5/8IxhCmhfZqMomWwpMjrbOt4 q69MBe2//gZlXWhf1F1YoSKYZYCS3AyDdLVTLTh2TE71XE6bPQawR9DsKt2b1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635516775; a=rsa-sha256; cv=none; b=Gf+9GgGGhW+pRMIoeppnvv4G2sxQ9EjB3T8MR59PcumliGE+XxxRwTOtVFOmj4NfJAS1mG /cpgzCWJTg+K0rlx3AgyIhpr9COiPHQbIY6pfoJ+0K2ShKLVy3AnqbLcx4GTuVKDegQLgU 7CsYgDv+TwpNBTlhMWkq2FSS5zD5W4tmZ1Q6Pq2FJHjUgBQImzo795tVsk2xP/bOjatQg2 BMBXH4plMLGQ7GG+BEyt12Uv2UpK3UbGa5GEzSmB2xocj4tszYPtbMvQqBg3nHbfZ/EzT4 uVrec126lFDT59kcSKI6TQGfC73D8LGqW3ZkcNKsCxmK67TMTA0l/5rwYlxi1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=rEJs4yvj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=rEJs4yvj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 81F9CADA7 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: EllR1g3mhC9y Hi, zimoun skribis: > On Thu, 21 Oct 2021 at 22:47, Ludovic Court=C3=A8s wrote: > >> =E2=80=98guix lint -c archival=E2=80=99 uses =E2=80=98lookup-origin-revi= sion=E2=80=99, which is a good >> approximation, but it=E2=80=99s not 100% reliable because tags can be mo= dified >> and that procedure only tells you that a same-named tag was found, not >> that it=E2=80=99s the commit you were expecting. (And really, we should= stop >> referring to tags.) > > At package time, Guix uses tag. Then =E2=80=9Cguix lint=E2=80=9D saves t= he upstream > repo; containing the correct tag. Now, upstream replaces in-place the > tag and saves to SWH by their own. How does SWH deal with this case? SWH records the =E2=80=9Chistory of the history=E2=80=9D. It can tell you = what the tag pointed to at the time of a specific snapshot. However our fallback code picks the tag as it exists in the latest snapshot, and thus it could pick =E2=80=9Cthe wrong one=E2=80=9D if the tag= was modified over time. > Well, because it is not affordable to switch from the current > tag-address to immutable commit-address for defining packages, in order > to be 100% reliable, any fallback should use Disarchive-DB which stores > the mapping from checksum to swhid; for all kind origins. > > Is it what you have in mind? No, I think we should consider always referring to commits instead of tags. It=E2=80=99s annoying from a readability viewpoint, but it would ens= ure reproducibility. Even flatpak has this policy. :-) https://github.com/flathub/flathub/wiki/App-Requirements Ludo=E2=80=99.