GNU bug report logs -
#36954
[PATCH] deploy: Use all machine modules when loading deployment
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36954 in the body.
You can then email your comments to 36954 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#36954
; Package
guix-patches
.
(Wed, 07 Aug 2019 12:47:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
zerodaysfordays <at> sdf.lonestar.org (Jakob L. Kreuze)
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 07 Aug 2019 12:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* guix/scripts/deploy.scm (load-source-file): Enumerate and include all
submodules of (gnu machine) when loading the provided deployment
specification.
---
guix/scripts/deploy.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/deploy.scm b/guix/scripts/deploy.scm
index bc1d93a93a..6a67985c8b 100644
--- a/guix/scripts/deploy.scm
+++ b/guix/scripts/deploy.scm
@@ -19,6 +19,7 @@
(define-module (guix scripts deploy)
#:use-module (gnu machine)
+ #:use-module (guix discovery)
#:use-module (guix scripts)
#:use-module (guix scripts build)
#:use-module (guix store)
@@ -73,7 +74,10 @@ Perform the deployment specified by FILE.\n"))
(define (load-source-file file)
"Load FILE as a user module."
- (let ((module (make-user-module '((gnu) (gnu machine) (gnu machine ssh)))))
+ (let* ((guix-path (dirname (search-path %load-path "guix.scm")))
+ (environment-modules (scheme-modules* guix-path "gnu/machine"))
+ (module (make-user-module (append '((gnu) (gnu machine))
+ environment-modules))))
(load* file module)))
(define (guix-deploy . args)
--
2.22.0
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#36954
; Package
guix-patches
.
(Wed, 07 Aug 2019 20:08:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Merged and pushed, thanks!
Jakob L. Kreuze writes:
> * guix/scripts/deploy.scm (load-source-file): Enumerate and include all
> submodules of (gnu machine) when loading the provided deployment
> specification.
> ---
> guix/scripts/deploy.scm | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/guix/scripts/deploy.scm b/guix/scripts/deploy.scm
> index bc1d93a93a..6a67985c8b 100644
> --- a/guix/scripts/deploy.scm
> +++ b/guix/scripts/deploy.scm
> @@ -19,6 +19,7 @@
>
> (define-module (guix scripts deploy)
> #:use-module (gnu machine)
> + #:use-module (guix discovery)
> #:use-module (guix scripts)
> #:use-module (guix scripts build)
> #:use-module (guix store)
> @@ -73,7 +74,10 @@ Perform the deployment specified by FILE.\n"))
>
> (define (load-source-file file)
> "Load FILE as a user module."
> - (let ((module (make-user-module '((gnu) (gnu machine) (gnu machine ssh)))))
> + (let* ((guix-path (dirname (search-path %load-path "guix.scm")))
> + (environment-modules (scheme-modules* guix-path "gnu/machine"))
> + (module (make-user-module (append '((gnu) (gnu machine))
> + environment-modules))))
> (load* file module)))
>
> (define (guix-deploy . args)
Reply sent
to
Christopher Lemmer Webber <cwebber <at> dustycloud.org>
:
You have taken responsibility.
(Wed, 07 Aug 2019 20:08:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
zerodaysfordays <at> sdf.lonestar.org (Jakob L. Kreuze)
:
bug acknowledged by developer.
(Wed, 07 Aug 2019 20:08:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 05 Sep 2019 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 235 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.