help-guix
[Top][All Lists]
Advanced

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

How to use guix hash --serializer?


From: Mortimer Cladwell
Subject: How to use guix hash --serializer?
Date: Tue, 4 Jan 2022 11:32:52 -0500

Hi,
Using guix package --install-from-file=guix.scm I determined the commit
hash from the error message. The git-reference that works is:

 (uri (git-reference
                      (url "git://github.com/mbcladwell/shinyln.git")
                      (commit "9f06568ffa61953ab48c93e1623d88b4e672af42")))
                (sha256 (base32
"10nfjllq28jrzxd4dfqm6xzx8f2g1m6p2vivzihxc7d3ac1imnk2"))

 In the local directory from where I issued git commit -am "my message" I
try the following:

 --------------------------------------------------------
$git log -n 1

commit 9f06568ffa61953ab48c93e1623d88b4e672af42 (HEAD -> master,
origin/master)
Author: mbcladwell <mbcladwell@gmail.com>
Date:   Tue Jan 4 09:08:09 2022 -0500

    removed chmod statement

$guix hash -rx .
1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj

$guix hash --serializer=git -x .
0lai57r0p11q041b3flriv56j6n8lizwb69yv7j396yiivkspv3x

$guix hash --serializer=git .
0lai57r0p11q041b3flriv56j6n8lizwb69yv7j396yiivkspv3x

------------------------------------------------------------

Appears that the -x switch has no effect.
-r and --serializer give different results.
Neither result matches the (valid) error message hash.
Where did I go wrong?
Thanks
Mortimer



----the .gitignore-----------------------------------
*.eps
*.go
*.log
*.pdf
*.png
*.tar.xz
*.tar.gz
*.tmp
*~
.#*
\#*\#
,*
/ABOUT-NLS
/INSTALL
/aclocal.m4
/autom4te.cache
/build-aux/ar-lib
/build-aux/compile
/build-aux/config.guess
/build-aux/config.rpath
/build-aux/config.sub
/build-aux/depcomp
/build-aux/install-sh
/build-aux/mdate-sh
/build-aux/missing
/build-aux/test-driver
/build-aux/texinfo.tex
/config.status
/configure
/doc/*.1
/doc/.dirstamp
/doc/contributing.*.texi
/doc/*.aux
/doc/*.cp
/doc/*.cps
/doc/*.fn
/doc/*.fns
/doc/*.html
/doc/*.info
/doc/*.info-[0-9]
/doc/*.ky
/doc/*.pg
/doc/*.toc
/doc/*.t2p
/doc/*.tp
/doc/*.vr
/doc/*.vrs
/doc/stamp-vti
/doc/version.texi
/doc/version-*.texi
/m4/*
/pre-inst-env
/test-env
/test-tmp
/tests/*.trs
GPATH
GRTAGS
GTAGS
Makefile
Makefile.in
config.cache
stamp-h[0-9]
tmp
/.version
/doc/stamp-[0-9]


reply via email to

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