[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix import crate wraps #:cargo-inputs twice
From: |
Jelle Licht |
Subject: |
Re: guix import crate wraps #:cargo-inputs twice |
Date: |
Tue, 02 Jul 2019 10:05:21 +0200 |
Ivan Petkov <address@hidden> writes:
> [...]
> I tried building some of the crates and most of the errors I saw were
> something
> like “failed to select a version for the requirement `foo = ^0.6
> candidate versions found which didn’t match: 0.8.5”.
>
> Please note that the crate importer always picks the latest version available
> on crates.io <http://crates.io/> but existing crates may depend on an earlier
> version. In this case
> you’ll need to manually pull in the right version and update the package
> definition
> of the consumer (ideally we can update the importer to be smart about these
> kinds
> of imports, but this hasn’t been done yet!).
Shameless plug; I have some guile code lying around for dealing
with exactly these problems; `guile-semver'[1] might give you a start
for handling these cases.
>
> Hope this helps,
> —Ivan
[1]: https://notabug.org/jlicht/guile-semver