mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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:
parent
fb226b4351
commit
ef51ac21ee
2 changed files with 13 additions and 5 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue