summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2020-11-15 21:25:16 +0100
committerHartmut Goebel <h.goebel@crazy-compilers.com>2020-12-02 22:09:23 +0100
commit054e308f5d85ca96327861a577d69c6e18fdc9dc (patch)
treeb9f9ca834bf9b70173d1a6e1c344925ee7a2d018 /.gitignore
parent45584061a9ebe961e2be08ee94c3fe8ad74e2713 (diff)
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 '.gitignore')
0 files changed, 0 insertions, 0 deletions