[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51307] [PATCH 0/2] guix hash: eases conversion
From: |
Ludovic Courtès |
Subject: |
[bug#51307] [PATCH 0/2] guix hash: eases conversion |
Date: |
Sun, 31 Oct 2021 14:43:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi,
zimoun <zimon.toutoune@gmail.com> skribis:
> On Sat, 30 Oct 2021 at 16:46, Ludovic Courtès <ludo@gnu.org> wrote:
>> zimoun <zimon.toutoune@gmail.com> skribis:
>>
>>> * guix/scripts/hash.scm (guix-hash): Allow several files.
>>> [directory?]: New procedure.
>>> [file-hash]: Catch system-error.
>>> [hash-to-display]: New procedure.
>>
>> Nice! Could you update guix.texi and tests/guix-hash.texi?
>
> I will once we agree and reach consensus. ;-)
Apparently there’s consensus on this specific patch.
>> This change is not related to the main purpose of the patch.
>>
>> More importantly, note that ‘--recursive’ is not limited to directories:
>> it preserves file properties (directory, executable, or regular), so
>> it’s also useful for executable files for instance. It can also be used
>> for regular files, even if it’s less useful.
>
> I understand. Could you provide concrete examples when it is not
> directory? In order to see if there is a pattern.
See the executables used in (gnu packages bootstrap): to preserve their
executable bit, you need ‘--recursive’. Same for symlinks.
Anyway, this patch is about allowing for multiple arguments (which we
agree on), so I think we should discuss the ‘--recursive’ issue
separately.
Thanks!
Ludo’.
[bug#51307] [PATCH 0/2] guix hash: eases conversion, Ludovic Courtès, 2021/10/30