From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6JnsE0yuzWGJEAEAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 14:04:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OJA1EUyuzWGEhgAA9RJhRA (envelope-from ) for ; Thu, 30 Dec 2021 14:04:12 +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 EC44E154EB for ; Thu, 30 Dec 2021 14:04:11 +0100 (CET) Received: from localhost ([::1]:52820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2v6J-0003xR-04 for larch@yhetil.org; Thu, 30 Dec 2021 08:04:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2uzy-0001ye-BL for guix-devel@gnu.org; Thu, 30 Dec 2021 07:57:38 -0500 Received: from [2a00:1450:4864:20::336] (port=41482 helo=mail-wm1-x336.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2uzw-000206-Bi for guix-devel@gnu.org; Thu, 30 Dec 2021 07:57:37 -0500 Received: by mail-wm1-x336.google.com with SMTP id b186-20020a1c1bc3000000b00345734afe78so13315306wmb.0 for ; Thu, 30 Dec 2021 04:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=mhpJ70vZLJ29vtHsL8pj6u3urg7xRlLwmU0hL87B0hk=; b=QbP/f56Nz5leD/XSgUNz2OFRBtj3/olCyaJircWh8gh01nqi0dbzWKwPuvEQS+hhIQ k8DrZZ2l/m5rA2WR7Xmte6GnaRNW5LkcU6CiC7PUewKSK6wRqhwy0hiyE3yhw31H4tOC 51eP/stCSKqjTtpbBKjundv6W+T4SylT1EEocQL9iOzVig9eysFKUYyg6AXMq+BwYGlN UmTLw6VE+XuGwzn2Lz8keUi92v6UCi+1tmysBtoCmVTS+xsy4xG9pUTWX+hozqFIO8of 7vEjON6NLG6flz4o6fHw8dNtVk/kZn3NhnYH3B64FQxD7U4KWkyYWMNAIvBhDY3ljdvY u6Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=mhpJ70vZLJ29vtHsL8pj6u3urg7xRlLwmU0hL87B0hk=; b=04Z0die2pnSFhU2/LUWvmnp6jUwufHpSteGZHN9vNNdzOB1741ipSMu/H5Y+6sZ42Z KBcuvinz9DeONGEMzsH/6qCD29UsEYJyXixOqWzBRAeAJVMMa98BgUGOhhylgZMcjHZN 7X9MMNX53FZYe4FGpyYlCE9+Ee1ajAT4tYiTkfN+/s38/z0dDLoBf9WV7VZsi1fFw48d mM0hdtuqyIn3NRd3Wu4iEzpPzj14OzqDspg2nLkdQf0ELiDepMzQUg17i9BTviuQJxwB 1OJRbwMYv5wGUXph/xf5dE4qWCTT46JQp/K8/Ypofgm+O+qfHEljRXFZC/bQ1Kf1wI23 ljCA== X-Gm-Message-State: AOAM533VZtgw7DVsMtxsgFIKV+1KBErJ9qfaYLnLzj2ACWOUqXa703OV 9m3z/u0RBPYmbTsPFzt1lhasf8W8q/0= X-Google-Smtp-Source: ABdhPJwcIJmJM9AgT0crZLzKB+fN4WxbQw3s7aLeJKNDQCQZLlQAX/q4A2ecCqZzWqqFa3FIhegs9A== X-Received: by 2002:a05:600c:4f0d:: with SMTP id l13mr23630549wmq.122.1640869055034; Thu, 30 Dec 2021 04:57:35 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id i9sm25374351wrb.84.2021.12.30.04.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 04:57:34 -0800 (PST) From: zimoun To: Mark H Weaver , Liliana Marie Prikler , guix-devel@gnu.org Subject: Re: On raw strings in commit field In-Reply-To: <87k0fm7v3k.fsf@netris.org> References: <6e451a878b749d4afb6eede9b476e5faabb0d609.camel@gmail.com> <87k0fm7v3k.fsf@netris.org> Date: Thu, 30 Dec 2021 13:56:51 +0100 Message-ID: <861r1ui73g.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::336 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) 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, RDNS_NONE=0.793, 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: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640869452; 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=mhpJ70vZLJ29vtHsL8pj6u3urg7xRlLwmU0hL87B0hk=; b=b3B54A0f7zAQRWGFSfk227Tr7fBoykYHl8tZgy2mBj17FrZ1VReFv3VcP6INmsjTLbbDC0 a0cgr0HmXh4XHpOrix7sG+eMMFTfs29DsXenvjmKteR7UnYcb8Q6baXcn2/5C7TzYbGwYd qZ2BOop14+87SzuB759tz+WACBaR/V/4ObEhhgAv3wFuYLo0/RQcLmFRe1MeAH590MAKmk Gk1RtKPEjD+UTYA/OXVFi7KK4gFHNLUwC8OeM+PrMGfW/ctUuUYB5lHhJfKNcOhQkjTbb8 pbiXEKBsfuZH4un2gd9NNk6Hy/WT0KGeuF03YqkySnc4LTyTOG9du8cUlkNniw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640869452; a=rsa-sha256; cv=none; b=DYgRGrPOUu1Y54A8aJCJp772sLPbaPtswpFVLWsO9C5xj53Xm8Tk/ZPXBIAdx5m3KLl+xd EjDmP8wJSXBbsPJAF8GqnQ82Ouh7s5oBughMInU1WuwF7w7HCKIgYQqgIaUNm8bZBjXOcb 779ZV7rP/h5nFIY6o2DHBL2zqh/5MIdzVb24/b1/jc4rXMtU5KLbFBo2QMXgZrtbdFRDnV xOR3kcOyUBi67CAi6xpLzatT/3ccY0HggwqRRFiUVWYLPFLM2gX7XdwECAUk19H4CIZspM 6G6MfCqsnv9OyrJnlyyNZ0GOTcEYzBKZ4JlAE+UfzqkwAOdGuYQYoxi3W+JXCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="QbP/f56N"; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -4.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="QbP/f56N"; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: EC44E154EB X-Spam-Score: -4.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: FG06E0FB3gX6 Hi Mark, On Wed, 29 Dec 2021 at 20:13, Mark H Weaver wrote: > Guix packages that refer to git _tags_ may cease to be reproducible in > the future if upstream mutates or removes those tags, and it's simply > not feasible to transform our SHA256 hashes (of the NAR-encoded source > checkout) into something that we can use to fetch the archived source > from SWH. There's simply no hope to make that work, unless we can > convince SWH to maintain a secondary index of their content based on > NAR-encoded source trees, which seems unlikely. Yes, that=E2=80=99s the core point. :-) Basically, url+tag can work with the SWH API. But SWH stores snapshots so it is not always straightforward. > On the other hand, if we refer to git _commit hashes_, then it *is* > feasible for us to fetch the archived source from SWH, regardless of > what upstream has done to its tags in the meantime. Well, IMHO, the main point of the story is how to content-address, i.e., using which method. SWH promotes their own encoding named =E2=80=99swhid=E2=80=99 (basically, i= t looks similar to Git commit). Many other address types are around. It had been discussed to maintain this secondary index via a Disarchive database =E2=80=93 potentially bridging from our SHA-256 to other addressing hash. One issue is that the package definition is not self consistent and requires this external service. On the other hand, we cannot predict the future and who could tell which content-address systems will be still there? ;-) This content-address is not an easy topic. :-) Cheers, simon