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 +J0XNGCb1GEUFwEAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 20:09:20 +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 AD21MGCb1GGMTAAAauVa8A (envelope-from ) for ; Tue, 04 Jan 2022 20:09:20 +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 346892F49A for ; Tue, 4 Jan 2022 20:09:20 +0100 (CET) Received: from localhost ([::1]:49264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4pBP-0006CI-DA for larch@yhetil.org; Tue, 04 Jan 2022 14:09:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4pBD-0006C7-Cu for help-guix@gnu.org; Tue, 04 Jan 2022 14:09:07 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4pBB-0006GZ-D3 for help-guix@gnu.org; Tue, 04 Jan 2022 14:09:07 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D65615C0328; Tue, 4 Jan 2022 14:09:02 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 04 Jan 2022 14:09:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XXpY3j aONxW6zdWZ1XUv5PQ9vvYeSaIQJrNy4XfDLC8=; b=PjQpGnM7JNq2gzODh2I7xo CXo0x+Y9dobCyrmjcV0n2Envu/QTdjrEzYDobAzio0MwB6zhnsbJOFvZJvsrtmkF wKcQbM0AMfR1aFOomdO2asWuB0La8pgly8/XKUMcAAuKtGSy4ruNBT9v2MktVsN0 MqUtagF9Ca/GF6Yfj1ty2PPcGkF5lyQygvwWO2L4tZW/wslk0rfWwd2LcAMWn0FS sCUY9J4eGrhnFbAIhC1A1ofngo7VsFMExY1gF3BymrD7jWTfXa6Mmie/0aFxR5DC 2Uj21Z34cphTmLxINCoDYrqEpZc2knMmtybRePtMDsc9gqTLYjDXvHjAIuou9mDA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudeffedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufhffjgfkfgggtgesmhdtreertderjeenucfhrhhomhepvfhimhho thhhhicuufgrmhhplhgvuceoshgrmhhplhgvthesnhhghihrohdrtghomheqnecuggftrf grthhtvghrnhepvdetjeevkefggfefgfevteehgffgledugfetudfggeeltdfhfeeuleej ffeuueffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhplhgvthesnhhghihrohdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Jan 2022 14:09:02 -0500 (EST) From: Timothy Sample To: zimoun Subject: Re: How to use guix hash --serializer? References: Date: Tue, 04 Jan 2022 14:09:00 -0500 In-Reply-To: (zimoun's message of "Tue, 4 Jan 2022 17:53:55 +0100") Message-ID: <87k0ff1foz.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=66.111.4.28; envelope-from=samplet@ngyro.com; helo=out4-smtp.messagingengine.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mortimer Cladwell , help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" 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=1641323360; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aGCf3ubBaTRjGuTCTI3cg+qmKCVFtkLICUV1Y4Eq9wI=; b=prdx+lcso/UcfngaSaYrcO1nO7UbqdpoYiIsA5s5rf2UJRx8Dyh7fK7MuM/z+B6WxynwX/ YQnNMmz0rQjYwp0vXCC2dBF+l2pbtEtWOiKXtmHas1ld67Qgo5lmH98ExW+U6jVMe4ccWo wT2edMxO+LxD/QeBs+9F30zD/ndA5scmLnwcIGZ1utq/hvWY0q02FKouT4nLdsWfPHBUgZ LqQnOSN4fieqKqpuO4qD6/WiG2/y7sb6LO2sl8XU3F04SIf93NGWMRj6cuw+t29Y8ZA25v s/YU/jhGdS+vEBTgwLB5VOQoFO+JaY+Dm0j1/UvJBLkWfV4f3RjUwUXDrmtlSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641323360; a=rsa-sha256; cv=none; b=a+04zwMPY7tMDb6NDZKJm1Rg0yMuxPxAjrFQNC8w+3VUsJLh750bGPFOEDaiLSQR8/oP2L B1g8Xs0fwiktJd5CxsTUGBrq1omDxWQ6oU+mRab2XFkKL+cblMgEpvVvNJTcd8hPYS3cl2 a41E9fHytTy7EeldPCr478duw84Iio6nzn8P59LM2NrazOMaF0zKbpphziLVr1WukxaeS2 FHvJVbZO8wzB1B0dHy9MaR289n3MAwPjRlS6O0Bgu+ZVBVOK2TQxrC0tKKakvLXGvRAWt2 wRP/T1UG0cOgZcXH0khlvOqds0ccyMXX7zh2U0EFwpJdKqMLutLoJdu9nS2ziQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b=PjQpGnM7; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b=PjQpGnM7; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 346892F49A X-Spam-Score: -1.09 X-Migadu-Scanner: scn1.migadu.com X-TUID: Sbrb/CnNBViT --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi zimoun, zimoun writes: > Indeed, > > $ guix hash -S git foo -x > 0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal > $ guix hash -S git foo > 0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal > > Hum, I will check if it is expected. I=E2=80=99m pretty sure it=E2=80=99s a bug. Fortunately, with Disarchive 0= .4.0, the following (untested) patch should fix it: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=git-hash-select.patch diff --git a/guix/scripts/hash.scm b/guix/scripts/hash.scm index d73e3d13dd..c44a4de9a4 100644 --- a/guix/scripts/hash.scm +++ b/guix/scripts/hash.scm @@ -69,7 +69,7 @@ (define* (git-hash file #:optional ((directory) #t) (else #f))) (if directory? - (git-hash-directory file algorithm) + (git-hash-directory file algorithm #:select? select?) (git-hash-file file algorithm))) --=-=-= Content-Type: text/plain Hope that helps! -- Tim --=-=-=--