mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
import: crate: Deduplicate dependencies.
* guix/import/crate.scm (crate-version-dependencies): Deduplicate crate dependencies. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
b488b64a3e
commit
cf2b91aad0
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ (define (crate-version-dependencies version)
|
|||
(url (string-append (%crate-base-url) path)))
|
||||
(match (assoc-ref (or (json-fetch url) '()) "dependencies")
|
||||
((? vector? vector)
|
||||
(map json->crate-dependency (vector->list vector)))
|
||||
(delete-duplicates (map json->crate-dependency (vector->list vector))))
|
||||
(_
|
||||
'()))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue