guix-commits
[Top][All Lists]
Advanced

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

branch master updated: doc: Document that source derivation builds can b


From: guix-commits
Subject: branch master updated: doc: Document that source derivation builds can be checked.
Date: Sun, 29 Nov 2020 22:40:39 -0500

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 3462678  doc: Document that source derivation builds can be checked.
3462678 is described below

commit 3462678bc346c2f6ea81245d6842264b6dccd945
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Nov 29 21:51:43 2020 -0500

    doc: Document that source derivation builds can be checked.
    
    It is a common mistake to modify an <origin> record that computes to a
    fixed-output derivation, forgetting to update its hash field, only to find 
out
    that a previously built source gets used instead.  While there doesn't seem 
to
    be an obvious solution to this problem, we can at least document the fact 
that
    sources can be checked the same as other builds.
    
    * doc/guix.texi (Additional Build Options): Document that source derivation
    builds can be verified using --check.
---
 doc/guix.texi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index e7277fc..889f380 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -10424,6 +10424,13 @@ The returned source tarball is the result of applying 
any patches and
 code snippets specified in the package @code{origin} (@pxref{Defining
 Packages}).
 
+@cindex source, verification
+As with other derivations, the result of building a source derivation
+can be verified using the @option{--check} option (@pxref{build-check}).
+This is useful to validate that a (potentially already built or
+substituted, thus cached) package source matches against its declared
+hash.
+
 Note that @command{guix build -S} compiles the sources only of the
 specified packages.  They do not include the sources of statically
 linked dependencies and by themselves are insufficient for reproducing



reply via email to

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