[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: doc: cookbook: Mention "guix hash -rx" for Git checkouts.
From: |
guix-commits |
Subject: |
02/08: doc: cookbook: Mention "guix hash -rx" for Git checkouts. |
Date: |
Mon, 22 Jun 2020 18:04:30 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 2f562699ea936f9639ccf5deef2e7b458a7426bf
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Mon Jun 22 16:40:18 2020 +0200
doc: cookbook: Mention "guix hash -rx" for Git checkouts.
* doc/guix-cookbook.texi (Extended example): Mention "guix hash -rx ."
---
doc/guix-cookbook.texi | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi
index 31c4cd4..efafbd9 100644
--- a/doc/guix-cookbook.texi
+++ b/doc/guix-cookbook.texi
@@ -852,6 +852,24 @@ version when packaging programs for a specific commit,
following the
Guix contributor guidelines (@pxref{Version Numbers,,, guix, GNU Guix
Reference Manual}).
+How does one obtain the @code{sha256} hash that's in there, you ask? By
+invoking @command{guix hash} on a checkout of the desired commit, along
+the lines:
+
+@example
+git clone https://github.com/libgit2/libgit2/
+cd libgit2
+git checkout v0.26.6
+guix hash -rx .
+@end example
+
+@command{guix hash -rx} computes a SHA256 hash over the whole directory,
+excluding the @file{.git} sub-directory (@pxref{Invoking guix hash,,,
+guix, GNU Guix Reference Manual}).
+
+In the future, @command{guix download} will hopefully be able to do
+these steps for you, just like it does for regular downloads.
+
@subsubsection Snippets
Snippets are quoted (i.e. non-evaluated) Scheme code that are a means of
patching
- branch master updated (62115b7 -> 96a95aa), guix-commits, 2020/06/22
- 02/08: doc: cookbook: Mention "guix hash -rx" for Git checkouts.,
guix-commits <=
- 04/08: po: Avoid regexps when interpreting '\n' sequences., guix-commits, 2020/06/22
- 06/08: self: Move statements after definitions in translation derivation., guix-commits, 2020/06/22
- 01/08: doc: cookbook: Clarify 'git-fetch' conventions., guix-commits, 2020/06/22
- 03/08: self: Speed up Texinfo cross-reference translation., guix-commits, 2020/06/22
- 07/08: self: Parallelize translation of the manual., guix-commits, 2020/06/22
- 05/08: po: Micro-optimize 'read-po-file'., guix-commits, 2020/06/22
- 08/08: doc: cookbook: Tweak intro to the REPL., guix-commits, 2020/06/22