guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: environment: Rationalize calls to 'set-build-options'.


From: Ludovic Courtès
Subject: 01/03: environment: Rationalize calls to 'set-build-options'.
Date: Wed, 12 Jul 2017 16:07:03 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 1ac3a488ad9724ecc45450c57eab2d360f274303
Author: Ludovic Courtès <address@hidden>
Date:   Wed Jul 12 12:04:55 2017 +0200

    environment: Rationalize calls to 'set-build-options'.
    
    Before this change '--substitute-urls' would be ignored.
    
    * guix/scripts/environment.scm (build-environment): Remove redundant
    call to 'set-build-options-from-command-line*'.
    (guix-environment): Move 'set-build-options-from-command-line' right
    after 'with-store'.
---
 guix/scripts/environment.scm | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 0abc509..95ba199 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -313,9 +313,7 @@ in OPTS."
                            #:dry-run? dry-run?)
       (if dry-run?
           (return #f)
-          (mbegin %store-monad
-            (set-build-options-from-command-line* opts)
-            (built-derivations derivations))))))
+          (built-derivations derivations)))))
 
 (define (inputs->profile-derivation inputs system bootstrap?)
   "Return the derivation for a profile consisting of INPUTS for SYSTEM.
@@ -580,6 +578,8 @@ message if any test fails."
       (when container? (assert-container-features))
 
       (with-store store
+        (set-build-options-from-command-line store opts)
+
         ;; Use the bootstrap Guile when requested.
         (parameterize ((%graft? (assoc-ref opts 'graft?))
                        (%guile-for-build
@@ -588,7 +588,6 @@ message if any test fails."
                          (if bootstrap?
                              %bootstrap-guile
                              (canonical-package guile-2.0)))))
-          (set-build-options-from-command-line store opts)
           (run-with-store store
             ;; Containers need a Bourne shell at /bin/sh.
             (mlet* %store-monad ((bash       (environment-bash container?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]