diff options
author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2020-11-15 21:25:16 +0100 |
---|---|---|
committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2020-12-02 22:09:23 +0100 |
commit | 054e308f5d85ca96327861a577d69c6e18fdc9dc (patch) | |
tree | b9f9ca834bf9b70173d1a6e1c344925ee7a2d018 /tests/lint.scm | |
parent | 45584061a9ebe961e2be08ee94c3fe8ad74e2713 (diff) | |
download | guix-054e308f5d85ca96327861a577d69c6e18fdc9dc.tar.gz |
import: crate: Use existing package satisfying semver requirement.
If a package satisfying the dependency's semver requirement already exists, use it. Prior to this change the highest version matching the semver requirement was used (and imported in case it was not defined as package already). When resolving a dependency (now done in `sort-map-dependencies`), first search for a package matching the semver requirement and only if this fails reach out for a crate. * guix/import/crate.scm (crate->guix-package)[find-package-version]: New function. [dependency-name+version]: New function. [sort-map-dependencies]: Use it instead of lambda function. * tests/crate.scm (test-doctool-crate, test-doctool-dependencies): New variables. ("self-test …", "cargo-recursive-import-hoors-existing-packages"): New tests.
Diffstat (limited to 'tests/lint.scm')
0 files changed, 0 insertions, 0 deletions