mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
inferior: 'cached-channel-instance' does not cache unauthenticated instances.
The comment saying that caching is fine even when AUTHENTICATE? is false was true in commit838ac881ec
, but it became incorrect in7cfd789150
, which no longer calls 'latest-channel-instances' on cache hits. * guix/inferior.scm (cached-channel-instance): Do not create CACHED when AUTHENTICATE? is false.
This commit is contained in:
parent
1a0696e0a6
commit
9f371f23eb
1 changed files with 12 additions and 5 deletions
|
@ -785,6 +785,9 @@ (define symlink*
|
||||||
(define add-indirect-root*
|
(define add-indirect-root*
|
||||||
(store-lift add-indirect-root))
|
(store-lift add-indirect-root))
|
||||||
|
|
||||||
|
(define add-temp-root*
|
||||||
|
(store-lift add-temp-root))
|
||||||
|
|
||||||
(mkdir-p cache-directory)
|
(mkdir-p cache-directory)
|
||||||
(maybe-remove-expired-cache-entries cache-directory
|
(maybe-remove-expired-cache-entries cache-directory
|
||||||
cache-entries
|
cache-entries
|
||||||
|
@ -805,11 +808,15 @@ (define add-indirect-root*
|
||||||
;; what's going to be built.
|
;; what's going to be built.
|
||||||
(built-derivations (list profile))
|
(built-derivations (list profile))
|
||||||
|
|
||||||
;; Note: Caching is fine even when AUTHENTICATE? is false because
|
;; Cache if and only if AUTHENTICATE? is true.
|
||||||
;; we always call 'latest-channel-instances?'.
|
(if authenticate?
|
||||||
(symlink* (derivation->output-path profile) cached)
|
(mbegin %store-monad
|
||||||
(add-indirect-root* cached)
|
(symlink* (derivation->output-path profile) cached)
|
||||||
(return cached))))))
|
(add-indirect-root* cached)
|
||||||
|
(return cached))
|
||||||
|
(mbegin %store-monad
|
||||||
|
(add-temp-root* profile)
|
||||||
|
(return profile))))))))
|
||||||
|
|
||||||
(define* (inferior-for-channels channels
|
(define* (inferior-for-channels channels
|
||||||
#:key
|
#:key
|
||||||
|
|
Loading…
Reference in a new issue