summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRostislav Svoboda <Rostislav.Svoboda@gmail.com>2025-02-06 23:55:44 +0100
committerLeo Famulari <leo@famulari.name>2025-02-07 14:00:44 -0500
commit8e9bceda87d55f475992ec5184590463ac7b5ffb (patch)
tree0aa849cdd983d7d5230e8d22e287565196fff79f
parent8455e44cbbe2b23cadb6e15fe1e40f92b8a5e581 (diff)
doc: Mention --check --no-grafts as a way to force-rebuild packages.
* doc/guix.texi (On Trusting Binaries): Document that combining --check and --no-grafts with 'guix build' forces the rebuild of a package. Change-Id: I4eb6be04243a52f70d0fc298f76e62f10e3d376e Co-authored-by: Leo Famulari <leo@famulari.name> Signed-off-by: Leo Famulari <leo@famulari.name>
-rw-r--r--doc/guix.texi12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index a5194d7c589..b699ae3c653 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -29,7 +29,7 @@ Copyright @copyright{} 2014, 2015, 2016 Alex Kost@*
29Copyright @copyright{} 2015, 2016 Mathieu Lirzin@* 29Copyright @copyright{} 2015, 2016 Mathieu Lirzin@*
30Copyright @copyright{} 2014 Pierre-Antoine Rault@* 30Copyright @copyright{} 2014 Pierre-Antoine Rault@*
31Copyright @copyright{} 2015 Taylan Ulrich Bayırlı/Kammer@* 31Copyright @copyright{} 2015 Taylan Ulrich Bayırlı/Kammer@*
32Copyright @copyright{} 2015, 2016, 2017, 2019, 2020, 2021, 2023 Leo Famulari@* 32Copyright @copyright{} 2015, 2016, 2017, 2019, 2020, 2021, 2023, 2025 Leo Famulari@*
33Copyright @copyright{} 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Ricardo Wurmus@* 33Copyright @copyright{} 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Ricardo Wurmus@*
34Copyright @copyright{} 2016 Ben Woodcroft@* 34Copyright @copyright{} 2016 Ben Woodcroft@*
35Copyright @copyright{} 2016, 2017, 2018, 2021 Chris Marusich@* 35Copyright @copyright{} 2016, 2017, 2018, 2021 Chris Marusich@*
@@ -136,6 +136,7 @@ Copyright @copyright{} 2024 Troy Figiel@*
136Copyright @copyright{} 2024 Sharlatan Hellseher@* 136Copyright @copyright{} 2024 Sharlatan Hellseher@*
137Copyright @copyright{} 2024 45mg@* 137Copyright @copyright{} 2024 45mg@*
138Copyright @copyright{} 2025 Sören Tempel@* 138Copyright @copyright{} 2025 Sören Tempel@*
139Copyright @copyright{} 2025 Rostislav Svoboda@*
139 140
140Permission is granted to copy, distribute and/or modify this document 141Permission is granted to copy, distribute and/or modify this document
141under the terms of the GNU Free Documentation License, Version 1.3 or 142under the terms of the GNU Free Documentation License, Version 1.3 or
@@ -3978,7 +3979,14 @@ finding out about non-deterministic package builds (@pxref{Invoking guix
3978challenge}). Similarly, the @option{--check} option of @command{guix 3979challenge}). Similarly, the @option{--check} option of @command{guix
3979build} allows users to check whether previously-installed substitutes 3980build} allows users to check whether previously-installed substitutes
3980are genuine by rebuilding them locally (@pxref{build-check, 3981are genuine by rebuilding them locally (@pxref{build-check,
3981@command{guix build --check}}). 3982@command{guix build --check}}). To force a full rebuild of a package
3983(ignoring security updates via grafts (@pxref{Security Updates}), if any
3984grafts exist—which is not always the case), use @option{--check}
3985together with @option{--no-grafts} (@pxref{Common Build Options,
3986@option{--no-grafts}}). Because grafts are built as their own
3987derivation, if the package you want to rebuild is subject to being
3988grafted, merely using @option{--check} will only rebuild the grafting
3989derivation, and not actually recompile the package.
3982 3990
3983In the future, we want Guix to have support to publish and retrieve 3991In the future, we want Guix to have support to publish and retrieve
3984binaries to/from other users, in a peer-to-peer fashion. If you would 3992binaries to/from other users, in a peer-to-peer fashion. If you would