[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#51307] [PATCH v2 0/3] scripts: hash: Several files and serializer.

From: zimoun
Subject: [bug#51307] [PATCH v2 0/3] scripts: hash: Several files and serializer.
Date: Thu, 18 Nov 2021 01:20:20 +0100


The first patch is the one which already made consensus.  Minor suggestions 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
        $ ./pre-inst-env guix hash -S git -H sha1 -f hex /tmp/foo.txt

Two remarks:

 1. « #:use-module (disarchive) » is added.  Elsewhere (guix download), the
    module is "conditionally" loaded, as if disarchive is an optional
    dependency.  What should be done?

 2. The SWH serializer is not added yet.


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/    |  20 ++++++--
 3 files changed, 112 insertions(+), 43 deletions(-)

base-commit: 99084abd80d7c81e83263ffc6fd3699aeb8899c5

reply via email to

[Prev in Thread] Current Thread [Next in Thread]