Subject: bug#34636: "guix refresh" fails

From: Ludovic Courtès <[email-masked]>
Date: Mon, 04 Mar 2019 23:11:00 +0100

Hi Andreas,

Andreas Enge <[email-masked]> skribis:

> when I run
>    guix refresh
> (with the latest git commit), the result is an error:

[...]

> In guix/import/github.scm:
>    226:25  2 (latest-release #<package [email-masked] gnu/…>)
>     209:9  1 (latest-released-version _ _)
> In unknown file:
>            0 (remove #<procedure pre-release? (x)> #((("body" . #) …)))
>
> ERROR: In procedure remove:
> In procedure remove: Wrong type argument in position 2: #((("body"
> . "") ("zipball_url"
> . "https://api.github.com/repos/rgerganov/footswitch/zipball/v1.0")
> ("tarball_url"
> . "https://api.github.com/repos/rgerganov/footswitch/tarball/v1.0")
> ("assets" . #()) ("published_at" . "2019-01-07T07:28:36Z")
> ("created_at" . "2018-10-09T14:33:23Z") ("prerelease" . #f)

Could it be that you’re running ‘guix refresh’ from a checkout and you
happen to have guile-json@3 instead of guile-json@1 in your Guile load
path?

-> not-a-bug :-)

Thanks,
Ludo’.