summaryrefslogtreecommitdiff
path: root/guix/scripts/environment.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-06-02 16:57:17 +0200
committerLudovic Courtès <ludo@gnu.org>2023-06-02 16:57:17 +0200
commit69dfdb7bd190a1562eb11555da6f556b222245d3 (patch)
treef5c880f220977bc8d37afd2a94cbab1c71e11ad2 /guix/scripts/environment.scm
parent7469d9c1067bdf177e30474e4b07a4cbb4a326c3 (diff)
environment: Fix unbound-variable bug with '--symlink'.
Fixes <https://issues.guix.gnu.org/63845>. Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>. * guix/scripts/environment.scm (launch-environment/container): Reference 'evaluate-populate-directive' before calling 'call-with-container'.
Diffstat (limited to 'guix/scripts/environment.scm')
-rw-r--r--guix/scripts/environment.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 8c0da9694e..9712389842 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -860,6 +860,11 @@ WHILE-LIST."
'())
(map file-system-mapping->bind-mount
mappings))))
+
+ ;; Trigger autoload now: the child process may lack (gnu build install)
+ ;; in its file system view.
+ (identity evaluate-populate-directive)
+
(exit/status
(call-with-container file-systems
(lambda ()