channels: Key cached channel derivations by system.
Previously, the channel instance to derivation mapping would be
independent of the system. Thus, building the same channel instance for
several different systems would always return the derivation that was
first computed.
This is a followup to c3ab921eed
.
* guix/channels.scm (channel-instance-derivations)[instance->derivation]:
Pass the current system as a third argument to 'mcached'.
This commit is contained in:
parent
c7b757c46c
commit
cdf689471a
|
@ -349,13 +349,15 @@ INSTANCES."
|
|||
(resolve-dependencies instances))
|
||||
|
||||
(define (instance->derivation instance)
|
||||
(mlet %store-monad ((system (current-system)))
|
||||
(mcached (if (eq? instance core-instance)
|
||||
(build-channel-instance instance)
|
||||
(mlet %store-monad ((core (instance->derivation core-instance))
|
||||
(deps (mapm %store-monad instance->derivation
|
||||
(edges instance))))
|
||||
(build-channel-instance instance core deps)))
|
||||
instance))
|
||||
instance
|
||||
system)))
|
||||
|
||||
(unless core-instance
|
||||
(let ((loc (and=> (any (compose channel-location channel-instance-channel)
|
||||
|
|
Loading…
Reference in New Issue