unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to use guix hash --serializer?
@ 2022-01-04 16:32 Mortimer Cladwell
  2022-01-04 16:53 ` zimoun
  0 siblings, 1 reply; 14+ messages in thread
From: Mortimer Cladwell @ 2022-01-04 16:32 UTC (permalink / raw)
  To: help-guix

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]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-01-05  7:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 16:32 How to use guix hash --serializer? Mortimer Cladwell
2022-01-04 16:53 ` zimoun
2022-01-04 19:09   ` Timothy Sample
2022-01-04 19:48     ` Mortimer Cladwell
2022-01-04 19:57       ` Tobias Geerinckx-Rice
2022-01-04 19:58       ` Mortimer Cladwell
2022-01-04 20:17       ` zimoun
2022-01-04 20:44         ` Mortimer Cladwell
2022-01-04 20:57           ` Tobias Geerinckx-Rice
2022-01-04 21:02           ` zimoun
2022-01-04 21:16             ` Mortimer Cladwell
2022-01-04 20:54     ` zimoun
2022-01-05  1:44       ` Timothy Sample
2022-01-05  7:43         ` zimoun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).