From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: bug#40895: import crate: Relaxed version selection Date: Mon, 27 Apr 2020 09:31:34 +0200 Message-ID: <1660dd38-8279-4fb3-4521-ee58dd131f31@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38754) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSyFJ-0001NF-Pn for bug-guix@gnu.org; Mon, 27 Apr 2020 03:32:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSyFG-000084-To for bug-guix@gnu.org; Mon, 27 Apr 2020 03:32:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSyFG-00007x-Gr for bug-guix@gnu.org; Mon, 27 Apr 2020 03:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSyFG-0007Cc-C1 for bug-guix@gnu.org; Mon, 27 Apr 2020 03:32:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:38674) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSyEy-0001Ft-Qm for bug-guix@gnu.org; Mon, 27 Apr 2020 03:31:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSyEw-0008Hk-KA for bug-guix@gnu.org; Mon, 27 Apr 2020 03:31:44 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:41011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSyEv-0008HR-Sv for bug-guix@gnu.org; Mon, 27 Apr 2020 03:31:42 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 499c0V52KZz1r6n9 for ; Mon, 27 Apr 2020 09:31:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 499c0V47d5z1qtwY for ; Mon, 27 Apr 2020 09:31:38 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id aZlh85o_FHvU for ; Mon, 27 Apr 2020 09:31:37 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-55-44.dynamic.mnet-online.de [188.174.55.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 27 Apr 2020 09:31:37 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id C4E2B600B0 for ; Mon, 27 Apr 2020 09:32:05 +0200 (CEST) Content-Language: en-US List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40895@debbugs.gnu.org If (manually) importing dependencies for some package requiring "other ^0.2", I would like the importer to fetch the newest version of other-0.2.x automatically. As it is now, I need to specify the exact version number, e.g. "guix import crate other@0.2.4" - and the get the version number I need to go to crates.io, search the package and search the list of available versions. The importer can do this much more efficient. This could be implemented like this: - If the version giben ("@0.2.4") matches an version available, use this version. - Otherwise, if the version giben ("@0.2") is a prefix of some available version, use the highest/newest of these versions -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |