GNU bug report logs -
#51307
[PATCH 0/2] guix hash: eases conversion
Previous Next
Reported by: zimoun <zimon.toutoune <at> gmail.com>
Date: Wed, 20 Oct 2021 16:51:01 UTC
Severity: normal
Tags: patch
Done: zimoun <zimon.toutoune <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
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
557db03de997c86a4a028e1ebd3a1ceb225be238
$ ./pre-inst-env guix hash -S git -H sha1 -f hex /tmp/foo.txt
557db03de997c86a4a028e1ebd3a1ceb225be238
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.
Cheers,
simon
1: <http://issues.guix.gnu.org/issue/51307#3>
2: <http://issues.guix.gnu.org/issue/51307#12>
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
--
2.33.1
This bug report was last modified 3 years and 155 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.