guix-devel/gnu
Ludovic Courtès 81c3dc3224
maint: Switch to Guile-JSON 3.x.
Guile-JSON 3.x is incompatible with Guile-JSON 1.x, which we relied on
until now: it maps JSON dictionaries to alists (instead of hash tables),
and JSON arrays to vectors (instead of lists).  This commit is about
adjusting all the existing code to this new mapping.

* m4/guix.m4 (GUIX_CHECK_GUILE_JSON): New macro.
* configure.ac: Use it.
* doc/guix.texi (Requirements): Mention the Guile-JSON version.
* guix/git-download.scm (git-fetch)[guile-json]: Use GUILE-JSON-3.
* guix/import/cpan.scm (string->license): Expect vectors instead of
lists.
(module->dist-name): Use 'json-fetch' instead of 'json-fetch-alist'.
(cpan-fetch): Likewise.
* guix/import/crate.scm (crate-fetch): Likewise, and call 'vector->list'
for DEPS.
* guix/import/gem.scm (rubygems-fetch): Likewise.
* guix/import/json.scm (json-fetch-alist): Remove.
* guix/import/pypi.scm (pypi-fetch): Use 'json-fetch' instead of
'json-fetch-alist'.
(latest-source-release, latest-wheel-release): Call 'vector->list' on
RELEASES.
* guix/import/stackage.scm (stackage-lts-info-fetch): Use 'json-fetch'
instead of 'json-fetch-alist'.
(lts-package-version): Use 'vector->list'.
* guix/import/utils.scm (hash-table->alist): Remove.
(alist->package): Pass 'vector->list' on the inputs fields, and default
to the empty vector.
* guix/scripts/import/json.scm (guix-import-json): Remove call to
'hash-table->alist'.
* guix/swh.scm (define-json-reader): Expect pair? or null? instead of
hash-table?.
[extract-field]: Use 'assoc-ref' instead of 'hash-ref'.
(json->branches): Use 'map' instead of 'hash-map->list'.
(json->checksums): Likewise.
(json->directory-entries, origin-visits): Call 'vector->list' on the
result of 'json->scm'.
* tests/import-utils.scm ("alist->package with dependencies"): New test.
* gnu/installer.scm (build-compiled-file)[builder]: Use GUILE-JSON-3.
* gnu/installer.scm (installer-program)[installer-builder]: Likewise.
* gnu/installer/locale.scm (iso639->iso639-languages): Use 'assoc-ref'
instead of 'hash-ref', and pass vectors through 'vector->list'.
(iso3166->iso3166-territories): Likewise.
* gnu/system/vm.scm (system-docker-image)[build]: Use GUILE-JSON-3.
* guix/docker.scm (manifest, config): Adjust for Guile-JSON 3.
* guix/scripts/pack.scm (docker-image)[build]: Use GUILE-JSON-3.
* guix/import/github.scm (fetch-releases-or-tags): Update docstring.
(latest-released-version): Use 'assoc-ref' instead of 'hash-ref'.  Pass
the result of 'fetch-releases-or-tags' to 'vector->list'.
* guix/import/launchpad.scm (latest-released-version): Likewise.
2019-07-25 00:16:41 +02:00
..
bootloader bootloader: grub: Remove unneeded 'terminal_output'. 2019-05-09 12:11:36 +02:00
build linux-container: Mount a new /dev/pts instance in the container. 2019-07-06 00:26:58 +02:00
installer maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
machine machine: Fix typo. 2019-07-18 12:57:00 +02:00
packages gnu: Add r-depecher. 2019-07-24 23:05:39 +02:00
services services: network-manager: Clear default OpenVPN user. 2019-07-17 11:08:26 +02:00
system maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
tests tests: encrypted-root-os: Increase root partition size. 2019-07-06 16:17:24 +02:00
artwork.scm artwork: Update snapshot to 2f2fe74. 2019-06-10 23:11:07 +02:00
bootloader.scm
ci.scm ci: 'channel-build-system' honors the target system. 2019-07-06 16:17:24 +02:00
installer.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
local.mk gnu: Add darkice. 2019-07-21 11:12:36 -04:00
machine.scm gnu: Add machine type for deployment specifications. 2019-07-06 02:10:04 -04:00
packages.scm packages: 'specification->package+output' distinguishes "no output specified". 2019-06-27 11:14:41 +02:00
services.scm services: 'gc-root-service-type' now has a default value. 2019-05-10 23:29:18 +02:00
system.scm system: Add 'operating-system-with-gc-roots'. 2019-05-15 16:36:21 +02:00
tests.scm