GNU bug report logs -
#74633
[PATCH] ui: Search channels for guix extensions
Previous Next
Reported by: Brian Kubisiak <brian <at> kubisiak.com>
Date: Sun, 1 Dec 2024 14:54:01 UTC
Severity: normal
Tags: patch
Merged with 74425
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #51 received at 74633-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Brian,
Brian Kubisiak <brian <at> kubisiak.com> skribis:
> * guix/describe.scm (append-channels-to-load-path!): New function.
> * gnu/packages.scm (%package-module-path): Call new function. Remove
> the code that the function call replaces.
> * guix/ui.scm (extension-directories): Call new function. Search
> channels for guix extensions.
> * guix/self.scm (compiled-guix)[*core-modules*]: Add 'guile-git' to
> the list of extensions.
>
> Change-Id: I53af828dc554485ca28389c9e2653ea6b4fb6b7e
Finally applied, with the cosmetic changes below.
Thanks!
Ludo’.
[Message part 2 (text/x-patch, inline)]
diff --git a/guix/ui.scm b/guix/ui.scm
index 3cc15b05fc..d462f7133e 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -2197,11 +2197,12 @@ (define (extension-directories)
;; We need to resolve these lazily, because even using an #:autoload is too
;; much and breaks compilation during "guix pull".
(define append-channels-to-load-path!
- (module-ref (resolve-module `(guix describe))
- (symbol-append 'append-channels-to-load-path!)))
+ (module-ref (resolve-interface '(guix describe))
+ 'append-channels-to-load-path!))
(define package-path-entries
- (module-ref (resolve-module `(guix describe))
- (symbol-append 'package-path-entries)))
+ (module-ref (resolve-interface '(guix describe))
+ 'package-path-entries))
+
(append-channels-to-load-path!)
(let ((channels (package-path-entries)))
(filter file-exists?
This bug report was last modified 130 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.