* [bug#60392] [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field
@ 2022-12-28 23:39 Karl Hallsby
2022-12-28 23:40 ` [bug#60392] [PATCH 1/2] doc: describe format of channel that uses " Karl Hallsby
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Karl Hallsby @ 2022-12-28 23:39 UTC (permalink / raw)
To: guix-patches, 60392; +Cc: Karl Hallsby
This patch series includes additional information about why one would want to
use the directory field of the .guix-channel file for a channel, and some
nuances that come from it.
Karl Hallsby (2):
doc: describe format of channel that uses directory field
doc: give example of when to use describe in .guix-channel file
doc/guix.texi | 11 +++++++++++
1 file changed, 11 insertions(+)
base-commit: 4ca649e978f08335fcabdcef693a7049082b5373
--
2.37.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#60392] [PATCH 1/2] doc: describe format of channel that uses directory field
2022-12-28 23:39 [bug#60392] [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field Karl Hallsby
@ 2022-12-28 23:40 ` Karl Hallsby
2022-12-28 23:40 ` [bug#60392] [PATCH 2/2] doc: give example of when to use describe in .guix-channel file Karl Hallsby
2022-12-29 19:02 ` bug#60392: [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field Ricardo Wurmus
2 siblings, 0 replies; 4+ messages in thread
From: Karl Hallsby @ 2022-12-28 23:40 UTC (permalink / raw)
To: 60392; +Cc: Karl Hallsby
---
doc/guix.texi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index 053cd1ad41..7c02e2d392 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5614,6 +5614,12 @@ add a meta-data file @file{.guix-channel} that contains:
(directory "guix"))
@end lisp
+The modules must be @b{underneath} the specified directory, as the
+@code{directory} changes Guile's @code{load-path}. For example, if
+@file{.guix-channel} has @code{(directory "base")}, then a module
+defined as @code{(define-module (gnu packages fun))} must be located at
+@code{base/gnu/packages/fun.scm}.
+
@node Declaring Channel Dependencies
@section Declaring Channel Dependencies
--
2.37.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#60392] [PATCH 2/2] doc: give example of when to use describe in .guix-channel file
2022-12-28 23:39 [bug#60392] [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field Karl Hallsby
2022-12-28 23:40 ` [bug#60392] [PATCH 1/2] doc: describe format of channel that uses " Karl Hallsby
@ 2022-12-28 23:40 ` Karl Hallsby
2022-12-29 19:02 ` bug#60392: [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field Ricardo Wurmus
2 siblings, 0 replies; 4+ messages in thread
From: Karl Hallsby @ 2022-12-28 23:40 UTC (permalink / raw)
To: 60392; +Cc: Karl Hallsby
---
doc/guix.texi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index 7c02e2d392..cb9d1d685c 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5620,6 +5620,11 @@ The modules must be @b{underneath} the specified directory, as the
defined as @code{(define-module (gnu packages fun))} must be located at
@code{base/gnu/packages/fun.scm}.
+Doing this allows for only parts of a repository to be used as a
+channel, as Guix looks for valid Guile modules when pulling. For
+instance, by default @command{guix deploy} machine configuration files
+are not valid Guile modules, making @command{guix pull} fail.
+
@node Declaring Channel Dependencies
@section Declaring Channel Dependencies
--
2.37.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#60392: [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field
2022-12-28 23:39 [bug#60392] [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field Karl Hallsby
2022-12-28 23:40 ` [bug#60392] [PATCH 1/2] doc: describe format of channel that uses " Karl Hallsby
2022-12-28 23:40 ` [bug#60392] [PATCH 2/2] doc: give example of when to use describe in .guix-channel file Karl Hallsby
@ 2022-12-29 19:02 ` Ricardo Wurmus
2 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2022-12-29 19:02 UTC (permalink / raw)
To: 60392-done
Thank you for the patches! I reworded the commit message and changed
the text of the example slightly before pushing.
Thanks!
--
Ricardo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-29 19:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-28 23:39 [bug#60392] [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field Karl Hallsby
2022-12-28 23:40 ` [bug#60392] [PATCH 1/2] doc: describe format of channel that uses " Karl Hallsby
2022-12-28 23:40 ` [bug#60392] [PATCH 2/2] doc: give example of when to use describe in .guix-channel file Karl Hallsby
2022-12-29 19:02 ` bug#60392: [PATCH 0/2] [DOCUMENTATION]: describe .guix-channel directory field Ricardo Wurmus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).