inferior: Fix concurrent cached-profile calls.
* guix/inferior.scm (cached-profile): Do not create the profile symlink if it already exists.master
parent
7d63b77551
commit
6ee7e3d26b
|
@ -755,8 +755,9 @@ seconds. This procedure opens a new connection to the build daemon."
|
|||
(built-derivations (list profile))
|
||||
;; Note: Caching is fine even when AUTHENTICATE? is false because
|
||||
;; we always call 'latest-channel-instances?'.
|
||||
(symlink* (derivation->output-path profile) cached)
|
||||
(add-indirect-root* cached)
|
||||
(unless (file-exists? cached)
|
||||
(symlink* (derivation->output-path profile) cached)
|
||||
(add-indirect-root* cached))
|
||||
(return cached))))))
|
||||
|
||||
(define* (channels->cached-profile store channels
|
||||
|
|
Reference in New Issue