From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ENnKCtgHrmHHgAAAgWs5BA (envelope-from ) for ; Mon, 06 Dec 2021 13:53:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mN6RBtgHrmEAGgAA1q6Kng (envelope-from ) for ; Mon, 06 Dec 2021 12:53:44 +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 E8F1C11B4D for ; Mon, 6 Dec 2021 13:53:43 +0100 (CET) Received: from localhost ([::1]:43394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muDV1-0000dW-0C for larch@yhetil.org; Mon, 06 Dec 2021 07:53:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDLZ-0008Jl-Ov for guix-devel@gnu.org; Mon, 06 Dec 2021 07:43:57 -0500 Received: from [2001:470:142:3::e] (port=49360 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDLZ-0001XG-DW; Mon, 06 Dec 2021 07:43:57 -0500 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=x8sfCFt4u4aV9uz2qeXnwYRiRXLRvz/h65GI1Q8hqas=; b=PAF9nN3ysG00rafuqqfT TUbDpV2MkrzGdNtZQcIqbSPbrHzIBCzdvssx4O2pnIygAg8iibcx/SQnfFYzBgLziGezscOGe8X+3 yDf5GgzCmnUxFdE6irxaY0bPDQTmiDkZk2eWokWzuDbQFEiaRSGATgj4prU2jI0RCa6ABkCVp1jVJ 4xkYrm0NTGLZ2gzhY6UmgoLQRQ4WQ9nNF0E3aZTV4T04VVYqEvUSiercb8302dHfm67Avi97O0h0a ZAkyFq6MSyv5pl/rGe9vUoVlJZM5P4yfAxNFoGbF+rkP3veWChTIrScmkilS3ZE7MNLcHkYO65HUq J0UXMGF9qpNFew==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=43392 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDLY-0004um-Mo; Mon, 06 Dec 2021 07:43:57 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: How to compute SWHID? (with Guix/Disarchive) References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Frimaire 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: Mon, 06 Dec 2021 13:43:54 +0100 In-Reply-To: (zimoun's message of "Wed, 1 Dec 2021 11:12:04 +0100") Message-ID: <875ys1oqd1.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.29 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 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=1638795224; 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=x8sfCFt4u4aV9uz2qeXnwYRiRXLRvz/h65GI1Q8hqas=; b=MeQiQUHkVDTUdLaAokFfJlJWDBsR8LPKtr7XjM5AEUMJGplHmTx6p7gUKwCWfLLLhgmQeh w9bLPS5Um6ddEwYOjzvyFHhYSssZsJ+scmGNN8U1mCn4UH5AzIe/sFgUB41Qc+dysNW5f1 NSlCbyZfS0t6cKqkB8NaVrw4Du6fxacnIpTWrBMozapMJ2EIT6z81ArdXA4/7XXiQwanAI 9UMYMKEQiYj2J2Z3rSjPDXBzqF/dOtdQxxzVK+bMMQgvGGqc6Sr7KDJQFFfuTY1T9fN+xR 0rT9PmocFUKuTkoxL0C4xRjjKKi19SuK7nCaOUOgG+6eLqu1+zqbUvH1+/TtQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638795224; a=rsa-sha256; cv=none; b=Ip5clEcvENRbFvgWXbjX5bOUl5UWKd8P67Lp5Sdbit0j7GgK01a3WhRFl/CvEy1jWg2pqt qgjw/rpVkv8RJ/XiURW+OFkEl9F+TgxLCSRzAY/DS4pjaJlDwCEUMTVcuwlkE9q25jPzxq rS8RIWHeilxU/C6Fsw4Oq6lAoIVJ5YFCjHb8I7WeMAygK2MX8WVJ6OekiVt7n21CesN9jd oYW6FFxyu0fM1Y8901Pt+5mFc/0U758/Yuj6EkfhGSI7LCRDSVIY7+pe1lmlESy5QN0qfU NxBv/XHVXqOzwARQrGO08+KQo+GPQ5d07CERVdLjNAPMVXf2XYcgekk3mc6qyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=PAF9nN3y; dmarc=pass (policy=none) header.from=gnu.org; 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: -5.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=PAF9nN3y; dmarc=pass (policy=none) header.from=gnu.org; 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: E8F1C11B4D X-Spam-Score: -5.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: L6zSHSmNPBtC Hi, zimoun skribis: > Giving a look at Disarchive, I found how to compute Git-based > serialization hash and somehow serialization methods of "guix hash" > needs some clearning; considering '--recursive' is 'nar' serialization > which is a better name. Anyway, see [1]. :-) Neat! > I would like to add SWH-based serialization hash but I do not find if > a function already does the hard work. Any pointer? I think it=E2=80=99s =E2=80=98git-hash-directory=E2=80=99 in (disarchive gi= t-hash). The other day I learned that the Git CLI ignores empty directories, but the Git format itself has nothing against empty directories. Thus SWH serializes in exactly the same way as Git. (Can you confirm, Timothy?) > Moreover, I would like to add* a new export format to "guix show" > using BibTeX format proposed by SWH. It would help when writing > paper. ;-) That=E2=80=99d be fun! Maybe we need a separate tool set for scientific authoring? Thanks, Ludo=E2=80=99.