[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositori
From: |
André Batista |
Subject: |
[bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories. |
Date: |
Fri, 17 Feb 2023 16:06:40 -0300 |
* doc/guix.texi (Using a Custom Guix Channel): Add note and example
on how to exempt a local guix repository from git ownership checks.
---
doc/guix.texi | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 44e2165a82..ae975287c7 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -81,7 +81,7 @@ Copyright @copyright{} 2020, 2021 Brice Waegeneire@*
Copyright @copyright{} 2020 R Veera Kumar@*
Copyright @copyright{} 2020, 2021, 2022 Pierre Langlois@*
Copyright @copyright{} 2020 pinoaffe@*
-Copyright @copyright{} 2020 André Batista@*
+Copyright @copyright{} 2020, 2023 André Batista@*
Copyright @copyright{} 2020, 2021 Alexandru-Sergiu Marton@*
Copyright @copyright{} 2020 raingloom@*
Copyright @copyright{} 2020 Daniel Brooks@*
@@ -5413,6 +5413,25 @@ From there on, @command{guix pull} will fetch code from
the @code{super-hacks}
branch of the repository at @code{example.org}. The authentication concern is
addressed below (@pxref{Channel Authentication}).
+Note that you can specify a local directory on the @code{url} field above if
+the channel that you intend to use resides on a local file system. However,
+in this case @command{guix} checks said directory for ownership before any
+further processing. This means that if the user is not the directory owner,
+but wants to use it as their default, they will then need to set it as a safe
+directory in their global git configuration file. Otherwise, @command{guix}
+will refuse to even read it. Supposing your system-wide local directory is at
+@code{/src/guix.git}, you would then create a git configuration file at
+@code{~/.gitconfig} with the following contents:
+
+@example
+[safe]
+ directory = /src/guix.git
+@end example
+
+@noindent
+This also applies to the root user unless when called with @command{sudo} by
+the directory owner.
+
@node Replicating Guix
@section Replicating Guix
--
2.39.1
[bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., Simon Tournier, 2023/02/14
- [bug#61246] [PATCH v3 1/3] gnu: libgit2-1.1: Remove it., André Batista, 2023/02/17
- [bug#61246] [PATCH v3 0/3] gnu: libgit2: Update to 1.5.1., André Batista, 2023/02/17
- [bug#61246] [PATCH v3 3/3] gnu: libgit2: Update to 1.5.1., André Batista, 2023/02/17
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories.,
André Batista <=
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/17
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/17
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/18
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/22
- bug#61246: [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/23
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/23
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/23
[bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/17
[bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/17
[bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/18