environment: Parameterize ‘%graft?’ early on.
Previously, ‘%graft?’ would be parameterized after ‘package-derivation’ had been called for ‘%guile-for-build’, which is too late. * guix/scripts/environment.scm (guix-environment*)[with-store/maybe]: Parameterize ‘%graft?’. Remove ‘%graft?’ parameterization from body. Change-Id: I65ef4a8c5f27e19a49196005871e5f7057fabaec
parent
344e39c928
commit
661672a7f8
|
@ -1100,6 +1100,7 @@ command-line option processing with 'parse-command-line'."
|
|||
;; Evaluate EXP... with STORE bound to a connection, unless
|
||||
;; STORE-NEEDED? is false, in which case STORE is bound to #f.
|
||||
(let ((proc (lambda (store) exp ...)))
|
||||
(parameterize ((%graft? (assoc-ref opts 'graft?)))
|
||||
(if store-needed?
|
||||
(with-store s
|
||||
(set-build-options-from-command-line s opts)
|
||||
|
@ -1110,7 +1111,7 @@ command-line option processing with 'parse-command-line'."
|
|||
#:dry-run?
|
||||
(assoc-ref opts 'dry-run?))
|
||||
(proc s)))
|
||||
(proc #f))))
|
||||
(proc #f)))))
|
||||
|
||||
(when container? (assert-container-features))
|
||||
|
||||
|
@ -1146,8 +1147,7 @@ command-line option processing with 'parse-command-line'."
|
|||
(warning (G_ "no packages specified; creating an empty environment~%")))
|
||||
|
||||
;; Use the bootstrap Guile when requested.
|
||||
(parameterize ((%graft? (assoc-ref opts 'graft?))
|
||||
(%guile-for-build
|
||||
(parameterize ((%guile-for-build
|
||||
(and store-needed?
|
||||
(package-derivation
|
||||
store
|
||||
|
|
Reference in New Issue