From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oN2PGtSmuWHowwAAgWs5BA (envelope-from ) for ; Wed, 15 Dec 2021 09:27:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2ORKFtSmuWFjcgAAB5/wlQ (envelope-from ) for ; Wed, 15 Dec 2021 08:27:00 +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 3062C35BD3 for ; Wed, 15 Dec 2021 09:27:00 +0100 (CET) Received: from localhost ([::1]:50990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxPcp-000700-4j for larch@yhetil.org; Wed, 15 Dec 2021 03:26:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxPQI-0006x3-Hj for guix-patches@gnu.org; Wed, 15 Dec 2021 03:14:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxPQI-0007mJ-7G for guix-patches@gnu.org; Wed, 15 Dec 2021 03:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxPQH-0005df-Ua for guix-patches@gnu.org; Wed, 15 Dec 2021 03:14:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51307] [PATCH v2 0/3] scripts: hash: Several files and serializer. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Dec 2021 08:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51307 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: ludo@gnu.org Cc: 51307@debbugs.gnu.org Received: via spool by 51307-submit@debbugs.gnu.org id=B51307.163955601221630 (code B ref 51307); Wed, 15 Dec 2021 08:14:01 +0000 Received: (at 51307) by debbugs.gnu.org; 15 Dec 2021 08:13:32 +0000 Received: from localhost ([127.0.0.1]:60173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxPPo-0005co-B7 for submit@debbugs.gnu.org; Wed, 15 Dec 2021 03:13:32 -0500 Received: from mail-wr1-f42.google.com ([209.85.221.42]:34625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxPPm-0005ca-2Q for 51307@debbugs.gnu.org; Wed, 15 Dec 2021 03:13:30 -0500 Received: by mail-wr1-f42.google.com with SMTP id s1so2554812wrg.1 for <51307@debbugs.gnu.org>; Wed, 15 Dec 2021 00:13:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=2ZxKYZSpfiytwPYcX/RKVoWKatI2c58m/GdjS4nBPAw=; b=Hln3BM8ocZMBK/6bo9jWdEMdPo/HEcx9UZDE731mzRHPea8CcEYJnGUASsfuq63u95 E9aKoHn7p2nTnbGB+xkK1H2rs/u3rrVNNqzT1SiTQTii2FBzvw66fggmCDJy5FDbPgI+ d8LMurnFK2EY8V8Zn/j+wzfaOGmQGefryiwJSSf9Lk1IVZDvf/NB0t4tb40Rp+RI0fPS 0hRNag++P8SxpBr32yGKAjoEmIyMGVHOMHQzIujnBy+P7zjyQo8kvbG/bUGv5al6YRNQ 3v+g9CycdDR8iB+Ri4mpqUQ+odH3Pl82t4Yn2iWyak5W6AVUHwKswCncDNJ63YMg8F9s EeqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=2ZxKYZSpfiytwPYcX/RKVoWKatI2c58m/GdjS4nBPAw=; b=sAzgqcE7Dgyn2K6IR7rRL/oIMCxhn5ex+RcG8FDYGCdywtnxKJS+rComHYKaZEgnDF 0WVPKqANl75yC7IBdgLLBc3ONu5z0scFjskCdoKlqpCFVWoy3YVMtPBVGwZKMrwqHBdS 9JeosvggOUovPxetKmq6z1NiuRx5qYgMY0KS6/HBlpGbM+Ibgiao6QaL43jw9VusDxI1 TAI/PzTcri354SBglPk7Xmuv3Z/jJZlZKF3cvIxoFWyvXcNQR/7Lx98jBy+OxMTR+NXx 88a34Rttn8z6IO916ljv3EucEoEk5g1uhPpad/8Rv4h/jrOCoaLI9pboUkwIJcW2E0y8 KuTA== X-Gm-Message-State: AOAM5333+N0//UpnWyD5pvOJomsl5uHao0F9wor5PP9WRJVNpIGOa62F Hh/saJKPzX8DhgflRf1y6w4gEpeOZfA= X-Google-Smtp-Source: ABdhPJw7DT1kePJVH9awmkWmvOWZU59lBuVfc04/dJwkhkob1zho2xjY1lzW+1TnjzvsgMuMNSYtdw== X-Received: by 2002:a5d:5244:: with SMTP id k4mr3358953wrc.77.1639556004205; Wed, 15 Dec 2021 00:13:24 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id 138sm4399932wma.17.2021.12.15.00.13.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 00:13:23 -0800 (PST) From: zimoun References: <20211020165020.3358311-1-zimon.toutoune@gmail.com> <20211118002023.3323307-1-zimon.toutoune@gmail.com> Date: Wed, 15 Dec 2021 09:06:09 +0100 In-Reply-To: <20211118002023.3323307-1-zimon.toutoune@gmail.com> (zimoun's message of "Thu, 18 Nov 2021 01:20:20 +0100") Message-ID: <86r1ae5m32.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1639556820; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2ZxKYZSpfiytwPYcX/RKVoWKatI2c58m/GdjS4nBPAw=; b=RhDwf6C+MyrgeoWNx+ZPq6q7f2xcOetMMoSABddKHtsd0MHbnDyx5ga2p76zUpi74qV/CO T+2SQMzMI31Qp+x8RKe8BE4j/spumuLuvsQvptb3yQQ8XD9cyFPTDM7D0pt6kGw7tqZX+M sMbRd9gC5FiuHO4u+0lckzZsBq2C+s/FdqjAKM5dM0xa9wwxMCXYRC3WcYdhA/MjqOQuxd hZ3/AL5kYclPV6k+o7GjL6i1C53nrbj3o1/apmH6u/CipxgrPLGNC6qhnpFP/dA83thuO4 0cL0MMvF/3dVw6LtqR+QDeIiKHtkeS5g3t0pzbqzJ/k37/xwvFVu4yA0LQi5Fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639556820; a=rsa-sha256; cv=none; b=okyGx9DadrNrPrQd4r/hf9TlCuum7T2zJwLgsHouMKYzw66XLmQ9LLZbwt5WlKQdT6/xTb 1WzO65QU0tI14bP0yALAKslwOBEhHHg67BV0cS7rrxNWon+05Q0kOUZB71F4R7gPxS071L NoPsBRKuldqinhDACQkcCdZLSquG+f4bAmBKi/XmyvJylPvNb9E4u7lKBYxsFQYgDMfAT+ R++P/XgfDjSM5AggDJw/hR1Kg0+ZV07EYTctppmBST7FoMLAHdud0T7O8Go4lERTIN0Qyr d6jH08lOM9gtcTaBAiiqttgJEdZr/GY4nu48/iRB/Arbv5UPyq84o/CQ3KH24g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Hln3BM8o; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Hln3BM8o; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3062C35BD3 X-Spam-Score: -3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: rpwu7jxxl5a5 Hi, What do you think about patch#51307 [1] for =E2=80=9Cguix hash=E2=80=9D? As explained and discussed earlier in this thread, it renames the option =E2=80=99-r=E2=80=99 to =E2=80=99-S nar=E2=80=99 =E2=80=93 keeping the old = one for backward compatibility* =E2=80=93 and adds =E2=80=99-S git=E2=80=99. 1: *backward compatibility: we can come later with a plan to remove and/or deprecate. On Thu, 18 Nov 2021 at 01:20, zimoun wrote: > The first patch is the one which already made consensus. Minor suggestio= ns by > [1] has been added. > > The 2 following ones add UI presented there [2]. Basically, it allows: > > guix hash foo # similar as -S none > guix hash foo -S nar # similar as -r > guix hash foo -S git > > Especially, compare: > > $ cat /tmp/foo.txt | git hash-object --stdin > 557db03de997c86a4a028e1ebd3a1ceb225be238 > $ ./pre-inst-env guix hash -S git -H sha1 -f hex /tmp/foo.txt > 557db03de997c86a4a028e1ebd3a1ceb225be238 > > > Two remarks: > > 1. =C2=AB #:use-module (disarchive) =C2=BB is added. Elsewhere (guix do= wnload), the > module is "conditionally" loaded, as if disarchive is an optional > dependency. What should be done? > > 2. The SWH serializer is not added yet. > > > Cheers, > simon > > 1: > 2: > > zimoun (3): > scripts: hash: Support several files. > scripts: hash: Add 'serializer' option. > scripts: hash: Add git serializer. > > doc/guix.texi | 27 +++++++---- > guix/scripts/hash.scm | 108 ++++++++++++++++++++++++++++++------------ > tests/guix-hash.sh | 20 ++++++-- > 3 files changed, 112 insertions(+), 43 deletions(-) > > > base-commit: 99084abd80d7c81e83263ffc6fd3699aeb8899c5 Cheers, simon