From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 kANWJTRJ1GFSdwAAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 14:18:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mE4BIjRJ1GFwEwAAauVa8A (envelope-from ) for ; Tue, 04 Jan 2022 14:18:44 +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 1315F259D0 for ; Tue, 4 Jan 2022 14:18:44 +0100 (CET) Received: from localhost ([::1]:53874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4ji6-00077b-Ek for larch@yhetil.org; Tue, 04 Jan 2022 08:18:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4jew-0003uw-0A for guix-devel@gnu.org; Tue, 04 Jan 2022 08:15:26 -0500 Received: from [2a00:1450:4864:20::32d] (port=54154 helo=mail-wm1-x32d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4jet-0000xi-Jx for guix-devel@gnu.org; Tue, 04 Jan 2022 08:15:25 -0500 Received: by mail-wm1-x32d.google.com with SMTP id l4so23205001wmq.3 for ; Tue, 04 Jan 2022 05:15:23 -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=Rp1Zn1nI3JZdif5voKCI+qoue/Pv2+RPbsR2N3i53c4=; b=OoT+EMLvVRfsuPDKk+JHolyJ0dQS+iPjr31ewADH6Zws9Dt4XZ3s4Z5MgO0BsYARwm E9opZ9uWnGopV9wB9Gn89k4ONcxJ+b7heyDrRVveT6SVPdFXGLfLUSWX0HODWiB3rkjz nFYg8swbFtTjhtde1iQAD8/4wz/bCXwndpBEyoLXRQQsqyA4tMMPmN7dKvNJunvrveai R+2EO3Bpu6KWJnUfd0b4SB99Hx94qWO7njvuVcldXNgkW37LkA02teIjzJA+q5k+iDQ4 N5exeJlWOtRwVtIibXYESq9NMxeb4BQmWcAZHSeY33pjM9wEXcit6PLSYqu11VhLTlcg jnhQ== 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=Rp1Zn1nI3JZdif5voKCI+qoue/Pv2+RPbsR2N3i53c4=; b=nimxXAEgpZ5Xbs/QBYUiDKOD1+Fd/xINQUROedTBFwTyRB+BLCkPqmkGs0azEd9VBs ZExEDFJd4FXYruf5P+FmL0mkvUQs3JysHhvjpu4wRHXN7WOWVaNse/S+dUliB8AXE2E2 baJi60GVctIhgFEKrJsEVrIjhmx733P0MoT/pk1nNoWWkhOtIKC5wRN48xDBs3oUtTHa DI/hmCklLVP11jdFRaRjwim+GoON67hCJ/DpWDUhEMFAUwWlebrpG99ibGyDwoD6Phk5 qhWuQYW4Mp1E+/zF3ZDnzgZVy97Jf1SbnBQtiLBZQGZRyX+pPmtDnWjmsQ3AK34OEkQf d+sg== X-Gm-Message-State: AOAM533XlgXmLW8z8Vwd5Wp1iaUkFtvTme4bW+Aq7tZ4kqoge67BSIrP bW3Dau/N0XRVpCHqdM8no5a2N/H3rEA= X-Google-Smtp-Source: ABdhPJzIyvzqNlVypz6vyRT3YHa3PXWGjwZx7fkmbpfTEDqL7QOqQhg03t/XVsbP2tdytd+MTze/dw== X-Received: by 2002:a05:600c:3583:: with SMTP id p3mr42351726wmq.180.1641302122106; Tue, 04 Jan 2022 05:15:22 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z22sm38785786wmp.40.2022.01.04.05.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 05:15:21 -0800 (PST) From: zimoun To: Liliana Marie Prikler , Mark H Weaver , guix-devel@gnu.org Subject: Re: On raw strings in commit field In-Reply-To: <86zgobdgtr.fsf@gmail.com> References: <6e451a878b749d4afb6eede9b476e5faabb0d609.camel@gmail.com> <86y243kdoo.fsf@gmail.com> <899587fb6a76ddfa37d197d3d0fd23cdc7ad8592.camel@gmail.com> <867dbmi7pf.fsf@gmail.com> <3d448fe42f0c43574db96fa26aecd7da5fd5a95d.camel@gmail.com> <877dbkmjm9.fsf@netris.org> <762e9fb7116c442bf0f8f63221bf32fa2b77f2cf.camel@gmail.com> <87y240kq2i.fsf@netris.org> <9362c6fb7e34ded5d009c3f79cd18300d6cd539c.camel@gmail.com> <87r19rkx9h.fsf@netris.org> <86bl0url52.fsf@gmail.com> <86bf0d941ff6095961670a41478e603fa961e498.camel@gmail.com> <864k6lw4vh.fsf@gmail.com> <8fc6f95442ff8c5f0d5a317a84b7bdd180543cae.camel@gmail.com> <86tuektz7j.fsf@gmail.com> <0fff4aa2b320a82905c4b6bd43f7cd3d6e7493c6.camel@gmail.com> <864k6ke87e.fsf@gmail.com> <03096402e357e9b82084cda5f2822e1e8bf3d051.camel@gmail.com> <86zgobdgtr.fsf@gmail.com> Date: Tue, 04 Jan 2022 14:15:16 +0100 Message-ID: <86v8yzd4m3.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::32d (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32d.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=1641302324; 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=Rp1Zn1nI3JZdif5voKCI+qoue/Pv2+RPbsR2N3i53c4=; b=fMsfZN5990q8fm00Bc45X/PeGCXJOv4DgFJ4lt8jn+54eqebFRkISzvDSdHDiNeiiS4Z51 E4cXSmUuxn+N+c83z/PgOC2y5dhYvgNOMmzy1eOKMCWcE0sNq6Hqb8vteUoZGukJgOTyEM 0veP9+skfUUQWpXam9WBQT7wjwqyZdv6eZR4sGYOBbCpH3MRZIopQ1K3Eg1U9Eof9TwhBW BZRldYLzoQZbzojfQkZ0KkCG4VHggyIKlzdKj9bQ2DIy99Rp0LUd2lmMMathLzqFMf1Ijk LFPKVEyt9+pagL1z9c1LUmYXmlWldFvtWqNI/nS436O+paMYk/E82I3XMzN9ZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641302324; a=rsa-sha256; cv=none; b=Gu2JuJSru0xQ5UOnMblp+3mXrr8SGWvDYS/Y4rX2Wy+UBXb7ASTMCForMA6nKx3JglGfo4 TOSZlvTd0R0wf7gzVfmTWq9leHKFXygQTLU6RcYA7Tq57WIcKL89172MaGym8JyFnwdQMC a6gCaZ/cDN2KaI/I8HzTxR13PT/Aw+igE/i5IZozynS4Xa5ODTKolYK/eCX3DCJkccfzmO JCtCJXbv6DEgks85zCOK/xg+lPire8BfEJme4NjdnphFqPKNIFanvhWIjRXEwltEsTNi5Z IBNPkGrPcdYLMeoui5XQoiKlmxq/hnKlS3cQaz+5ZU/GmO/zbChLXXLDxaisHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OoT+EMLv; 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: -6.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OoT+EMLv; 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: 1315F259D0 X-Spam-Score: -6.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: orMb0r80JUHe Hi Liliana, On Tue, 04 Jan 2022 at 09:51, zimoun wrote: > On Tue, 04 Jan 2022 at 06:23, Liliana Marie Prikler wrote: > >>> The content can be one file, some files, folders, etc.=C2=A0 or Git >>> objects as Git commit object or Git tree object or whatever.=C2=A0 >>> Therefore, Git commit hash only depends on the content itself, i.e., >>> Git commit object; as explained by the pointer provided earlier in >>> the thread, >>>=20 >>> =C2=A0=C2=A0=C2=A0 >> >> At some point in there (you can figure out yourself where), you are >> mistakenly equating file hashes and commit hashes, which you make >> comparison to other tools which only regard the files as content. One >> of them is immutable for all I know, the other is subject to very >> observable changes. Let pick one commit in the Git history, for instance: e598e46913c661bc92df813d537eeb6be5a86471.=20 --8<---------------cut here---------------start------------->8--- $ git --no-pager show e598e46913c661bc92df813d537eeb6be5a86471 commit e598e46913c661bc92df813d537eeb6be5a86471 Author: Tobias Geerinckx-Rice Date: Tue Oct 26 02:01:41 2021 +0200 gnu: darkhttpd: Update to 1.13. =20=20=20=20 * gnu/packages/web.scm (darkhttpd): Update to 1.13. [source]: Use GIT-FETCH and GIT-FILE-NAME. [arguments]: Don't explicitly return #t from phases. diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index dc5a9d61a8..2bd3c4ea13 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -5791,28 +5791,28 @@ (define-public surfraw [...] --8<---------------cut here---------------end--------------->8--- Let copy somewhere the content of this Git commit: $ mkdir -p /tmp/kikoo $ cp .git/objects/e5/98e46913c661bc92df813d537eeb6be5a86471 \ /tmp/kikoo/content Now, let run inside a container: $ cd /tmp/kikoo $ guix shell -C coreutils gzip [env]$ printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" \ | cat - content | gzip -d | sha1sum gzip: stdin: unexpected end of file e598e46913c661bc92df813d537eeb6be5a86471 - Explain me. =C2=AB Git commit hash only depends on the content itself, i.e= ., Git commit object =C2=BB, as I wrote. Instead of taking a superior tone =C2=AB(you can figure out yourself where)= =C2=BB, I would prefer that you correctly read the messages I wrote. Maybe, that=E2=80=99s why my previous email is probably is bit harsh, sorry. Specifically, the content of this Git commit is just: --8<---------------cut here---------------start------------->8--- $ printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" |cat - content | gzip -d commit 662tree 44207c0d8c9e885b156bb98562221beb2ab8f7bf parent b8fc7c23596b542b81306829b31cf255d908fa65 author Tobias Geerinckx-Rice 1635206501 +0200 committer Tobias Geerinckx-Rice 1635206568 +0200 gpgsig -----BEGIN PGP SIGNATURE----- =20 iIMEABYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYXdFqA0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15OoAA+gIzCyrlUEBUFdLp0CBFW1GxjVzYiSFMmk5aNDNu OngEAQDoisl2dQK7lLvIl/2xXDqoJ2CAoiqZ1DbGNyg3Yt/DCA=3D=3D =3DRH+I -----END PGP SIGNATURE----- gnu: darkhttpd: Update to 1.13. * gnu/packages/web.scm (darkhttpd): Update to 1.13. [source]: Use GIT-FETCH and GIT-FILE-NAME. [arguments]: Don't explicitly return #t from phases. --8<---------------cut here---------------end--------------->8--- The files and folders are in a Git tree object, referred in the Git commit object by =E2=80=99tree 44207c0d8c9e885b156bb98562221beb2ab8f7bf=E2= =80=99. I let you run this command from the Guix git repo: $ git cat-file -p 44207c0d8c9e885b156bb98562221beb2ab8f7bf Please re-read all your answers and mines. I hope you will see where you were incorrect. Cheers, simon