From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jelle Licht Subject: Re: guix import crate wraps #:cargo-inputs twice Date: Tue, 02 Jul 2019 10:05:21 +0200 Message-ID: <87v9wk275q.fsf@jlicht.xyz> References: <874l4ili56.fsf@web.de> <87y31isrhg.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50177) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiDn7-0001Io-UL for guix-devel@gnu.org; Tue, 02 Jul 2019 04:05:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiDn6-0008V6-QR for guix-devel@gnu.org; Tue, 02 Jul 2019 04:05:29 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:38618) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hiDn6-0008Sp-JY for guix-devel@gnu.org; Tue, 02 Jul 2019 04:05:28 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ivan Petkov , Arne Babenhauserheide Cc: Guix-devel Ivan Petkov writes: > [...] > I tried building some of the crates and most of the errors I saw were som= ething > like =E2=80=9Cfailed to select a version for the requirement `foo =3D ^0.6 > candidate versions found which didn=E2=80=99t match: 0.8.5=E2=80=9D. > > Please note that the crate importer always picks the latest version avail= able > on crates.io but existing crates may depend on an ear= lier version. In this case > you=E2=80=99ll 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 the= se kinds > of imports, but this hasn=E2=80=99t 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, > =E2=80=94Ivan [1]: https://notabug.org/jlicht/guile-semver