[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use guix hash --serializer?
From: |
Timothy Sample |
Subject: |
Re: How to use guix hash --serializer? |
Date: |
Tue, 04 Jan 2022 14:09:00 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi zimoun,
zimoun <zimon.toutoune@gmail.com> writes:
> Indeed,
>
> $ guix hash -S git foo -x
> 0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal
> $ guix hash -S git foo
> 0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal
>
> Hum, I will check if it is expected.
I’m pretty sure it’s a bug. Fortunately, with Disarchive 0.4.0, the
following (untested) patch should fix it:
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)))
Hope that helps!
-- Tim
- How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/04
- Re: How to use guix hash --serializer?,
Timothy Sample <=
- Re: How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, Tobias Geerinckx-Rice, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/04
- Re: How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, Tobias Geerinckx-Rice, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/04
- Re: How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/04
- Re: How to use guix hash --serializer?, Timothy Sample, 2022/01/04