mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
derivations: 'substitution-oracle' returns a <substitutable>.
* guix/derivations.scm (substitution-oracle): Use
'substitution-path-info' instead of 'substitution-paths'. Turn SUBST
into a vhash from path to <substitutable>. Change the returned
procedure to provide a <substitutable> instead of a Boolean.
* tests/derivations.scm ("substitution-oracle and #:substitute? #f"):
Mock 'substitutable-path-info' instead of 'substitutable-paths'.
This commit is contained in:
@@ -919,7 +919,7 @@
|
||||
(set! query paths)
|
||||
'())
|
||||
|
||||
(mock ((guix store) substitutable-paths
|
||||
(mock ((guix store) substitutable-path-info
|
||||
record-substitutable-path-query)
|
||||
|
||||
(let ((pred (substitution-oracle store (list drv))))
|
||||
|
||||
Reference in New Issue
Block a user