mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
environment: Set build options early on.
This fixes a bug whereby some options, such as #:substitute-urls, would be passed to the daemon too late to have an effect. * guix/scripts/environment.scm (build-inputs): Remove call to 'set-build-options-from-command-line*'. (guix-environment): Add call to 'set-build-options-from-command-line' as early as possible.
This commit is contained in:
parent
f79a576e77
commit
471cdfdb19
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,6 @@ (define (build-inputs inputs opts)
|
|||
(if dry-run?
|
||||
(return #f)
|
||||
(mbegin %store-monad
|
||||
(set-build-options-from-command-line* opts)
|
||||
(built-derivations derivations)
|
||||
(return derivations))))))))
|
||||
|
||||
|
@ -500,6 +499,7 @@ (define (guix-environment . args)
|
|||
(when container? (assert-container-features))
|
||||
|
||||
(with-store store
|
||||
(set-build-options-from-command-line store opts)
|
||||
(run-with-store store
|
||||
(mlet* %store-monad ((inputs (lower-inputs
|
||||
(map (match-lambda
|
||||
|
|
Loading…
Reference in a new issue