From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:36001) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ii3xj-0003BC-Ik for guix-patches@gnu.org; Thu, 19 Dec 2019 17:08:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ii3xi-0002l8-Gx for guix-patches@gnu.org; Thu, 19 Dec 2019 17:08:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ii3xi-0002j0-7K for guix-patches@gnu.org; Thu, 19 Dec 2019 17:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ii3xh-0005QD-SK for guix-patches@gnu.org; Thu, 19 Dec 2019 17:08:01 -0500 Subject: [bug#38408] [PATCH v4 2/6] gnu: added new procedure, recusive-import-semver Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <5b82d5ab2c9d579d279db055b8f12509587234fa.1576005195.git.mjbecze@riseup.net> Date: Thu, 19 Dec 2019 23:07:19 +0100 In-Reply-To: <5b82d5ab2c9d579d279db055b8f12509587234fa.1576005195.git.mjbecze@riseup.net> (Martin Becze's message of "Tue, 10 Dec 2019 14:23:39 -0500") Message-ID: <87woaskm08.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Martin Becze Cc: 38408@debbugs.gnu.org Martin Becze skribis: > * gnu/packages.scm (recusive-import-semver): New Procedure > * gnu/packages.scm (package->definition)[arguments]: New argument, "lates= t" ^ This is actually guix/import/utils.scm. :-) > * tests/import-utils.scm: tests for recusive-import-semver > +(define* (recursive-import-semver #:key name > + (version #f) > + name->metadata > + metadata->package > + metadata-versions > + package-dependencies > + dependency-name > + dependency-range > + guix-name > + make-sexp) That=E2=80=99s intimidating. :-) Since there=E2=80=99s currently a single user, the Crate importer, I would rather have semver-handling directly in (guix import crate). Sure we can try to write it in a way that clearly separates semver handling from Crate-specific bits, but we shouldn=E2=80=99t try to make it too generic at= this point, IMO. WDYT? The and records provide the information needed to implement what you have in mind, I think. Thanks, Ludo=E2=80=99.