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'.
This commit is contained in:
Ludovic Courtès 2023-06-02 16:57:17 +02:00
parent 7469d9c106
commit 69dfdb7bd1
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -860,6 +860,11 @@ (define (nesting-mappings)
'())
(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 ()