From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 01 12:05:24 2019 Received: (at 37254) by debbugs.gnu.org; 1 Sep 2019 16:05:24 +0000 Received: from localhost ([127.0.0.1]:57091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4SM0-0001eS-8A for submit@debbugs.gnu.org; Sun, 01 Sep 2019 12:05:24 -0400 Received: from flashner.co.il ([178.62.234.194]:46946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4SLw-0001eD-Me for 37254@debbugs.gnu.org; Sun, 01 Sep 2019 12:05:22 -0400 Received: from localhost (unknown [188.120.128.191]) by flashner.co.il (Postfix) with ESMTPSA id C9EA1401CD; Sun, 1 Sep 2019 16:05:14 +0000 (UTC) Date: Sun, 1 Sep 2019 19:05:13 +0300 From: Efraim Flashner To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#37254] [PATCH 0/4] Refactor (guix ci) and (guix import crate) Message-ID: <20190901160513.GI13917@E5400> References: <20190901144647.15185-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="M9kwpIYUMbI/2cCx" Content-Disposition: inline In-Reply-To: <20190901144647.15185-1-ludo@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 37254 Cc: 37254@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --M9kwpIYUMbI/2cCx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable After my several (panicked :/) messages on IRC it turns out it's working pretty well. I'm able to run 'guix lint -c refresh' and 'guix refresh -t crate'. some errors I've come across, sometimes I get (license (list . #f)), like for rust-ppv-lite86, and sometimes I get (license (list . license:expat))), like with rust-schannel. On Sun, Sep 01, 2019 at 04:46:47PM +0200, Ludovic Court=C3=A8s wrote: > Hello Guix! >=20 > Initially I just wanted to fix =E2=80=9Cguix import crate blake2-rfc=E2= =80=9D, which > didn=E2=80=99t work as Efraim reported on IRC, but that led me to refactor > (guix ci) and (guix import crate) to use =E2=80=98define-json-mapping=E2= =80=99 to > automatically map JSON dictionaries to records. >=20 > Feedback welcome! >=20 > Thanks, > Ludo=E2=80=99. >=20 > Ludovic Court=C3=A8s (4): > Add (guix json). > ci: Use (guix json) and adjust for Guile-JSON 3.x. > import: create: Separate crates.io API from actual conversion. > import: crate: Correct interpretation of dual-licensing strings. >=20 > Makefile.am | 1 + > guix/build-system/cargo.scm | 11 ++- > guix/ci.scm | 68 ++++++--------- > guix/import/crate.scm | 161 ++++++++++++++++++++++++++---------- > guix/json.scm | 62 ++++++++++++++ > guix/swh.scm | 35 +------- > tests/crate.scm | 13 ++- > 7 files changed, 229 insertions(+), 122 deletions(-) > create mode 100644 guix/json.scm >=20 > --=20 > 2.23.0 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --M9kwpIYUMbI/2cCx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl1r7DUACgkQQarn3Mo9 g1FbChAAkFkXSgkTylmxoWlsBl89Qx19SiHoCMQmdt8+DYLbea81tEzGVhbuzIbB 8g9aDPj4A5bbnN7e9DVH/Bg2Nh9OplEgA7AzrswcP9zUTjY1F/BKUNVdFx7qm3hk bzpDlpFGXY5P1KfLYYxrIojHJ6VCjoj3Zko9POrdTRu7GgW2ObClgnDc9kWmRYQW 9m+dheFa8Z0c27Jh0c8QrsxL+ITbzZfgETC2vTAuC/p6a7kVlDcT689b+cba2jFD Wh6bKTI9A3VDUOKD8PjvJG38b5aFh6qJv1xvBjQX/cCHsuHkArOy9SqiKla8l4f+ MhXzh9RhR7Am/tuel40McJcSyaOMtNvZu9M56ch1kaytjDRkrIR7K3qWoJZ9P7TB TBVYTQvLt0helF9Q7I5QnOw+C0IoYRh35dJTelufcAJphbELsI/MVMe04yOnucSS wOEW+5m5SoIdEb82vlFwGTHCUf10AGiqY4P4KtSCqLNFXHmpP1xg+MuhyBOzsiXe +SoLqaKjhlS2yZT8n+06r7AaI/6JyR8//pO3hbJZynns6FHKZg9MkZF+Qqre8ZUX NCJNrxDt16D8BeBl8az3UGqL0BIjARt8mbr3qrpz8TvBOqeDk3Ux1pj4J5j814M1 K5arnbPYlcJRTcox8f3ixO138H8uEmjVAMFILYIm2YU7qiR1TNE= =Lpqm -----END PGP SIGNATURE----- --M9kwpIYUMbI/2cCx--