"guix refresh" fails

  • Done
  • quality assurance status badge
Details
2 participants
  • Andreas Enge
  • Ludovic Courtès
Owner
unassigned
Submitted by
Andreas Enge
Severity
normal

Debbugs page

Andreas Enge wrote 6 years ago
(address . bug-guix@gnu.org)
20190223215438.GA3370@jurong
Hello,

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

Backtrace:
13 (apply-smob/1 #<catch-closure 1a60ca0>)
In ice-9/boot-9.scm:
705:2 12 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
619:8 11 (_ #(#(#<directory (guile-user) 1ae7140>)))
In guix/ui.scm:
1654:12 10 (run-guix-command _ . _)
In ice-9/boot-9.scm:
829:9 9 (catch _ _ #<procedure 7efd4f7cb9b8 at guix/ui.scm:624…> …)
829:9 8 (catch _ _ #<procedure 7efd4f7cb9d0 at guix/ui.scm:750…> …)
In guix/scripts/refresh.scm:
513:8 7 (_)
In guix/store.scm:
1737:24 6 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/refresh.scm:
538:14 5 (_ _)
In srfi/srfi-1.scm:
640:9 4 (for-each #<procedure 44354c0 at guix/scripts/refresh.…> …)
In guix/scripts/refresh.scm:
346:2 3 (check-for-package-update #<package footswitch@0.1-2.c…> …)
In guix/import/github.scm:
226:25 2 (latest-release #<package footswitch@0.1-2.ca43d53 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) ("author" ("site_admin" . #f) ("type" . "User") ("received_events_url" . "https://api.github.com/users/rgerganov/received_events") ("events_url" . "https://api.github.com/users/rgerganov/events{/privacy}") ("repos_url" . "https://api.github.com/users/rgerganov/repos") ("organizations_url" . "https://api.github.com/users/rgerganov/orgs") ("subscriptions_url" . "https://api.github.com/users/rgerganov/subscriptions") ("starred_url" . "https://api.github.com/users/rgerganov/starred{/owner}{/repo}") ("gists_url" . "https://api.github.com/users/rgerganov/gists{/gist_id}") ("following_url" . "https://api.github.com/users/rgerganov/following{/other_user}") ("followers_url" . "https://api.github.com/users/rgerganov/followers") ("html_url" . "https://github.com/rgerganov") ("url" . "https://api.github.com/users/rgerganov") ("gravatar_id" . "") ("avatar_url" . "https://avatars2.githubusercontent.com/u/271616?v=4") ("node_id" . "MDQ6VXNlcjI3MTYxNg==") ("id" . 271616) ("login" . "rgerganov")) ("draft" . #f) ("name" . "First public release") ("target_commitish" . "master") ("tag_name" . "v1.0") ("node_id" . "MDc6UmVsZWFzZTE0ODI3Njk2") ("id" . 14827696) ("html_url" . "https://github.com/rgerganov/footswitch/releases/tag/v1.0") ("upload_url" . "https://uploads.github.com/repos/rgerganov/footswitch/releases/14827696/assets{?name,label}") ("assets_url" . "https://api.github.com/repos/rgerganov/footswitch/releases/14827696/assets") ("url" . "https://api.github.com/repos/rgerganov/footswitch/releases/14827696")))

This may simply be a problem with the footswitch package, or an emanation
of a more general problem with the github updater.

Andreas
Ludovic Courtès wrote 6 years ago
(name . Andreas Enge)(address . andreas@enge.fr)(address . 34636@debbugs.gnu.org)
87va0ymgsr.fsf@gnu.org
Hi Andreas,

Andreas Enge <andreas@enge.fr> skribis:

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

[...]

Toggle quote (15 lines)
> In guix/import/github.scm:
> 226:25 2 (latest-release #<package footswitch@0.1-2.ca43d53 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’.
Andreas Enge wrote 6 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 34636-done@debbugs.gnu.org)
20190306213216.GB1581@jurong
On Mon, Mar 04, 2019 at 11:11:00PM +0100, Ludovic Courtès wrote:
Toggle quote (4 lines)
> 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?

"No" and "yes" :-)

But whatever happened in the last two weeks, things work now, as well for
"guix refresh -l" after "guix pull", as "./pre-inst-env guix refresh -l"
after "git pull".

So I close this bug.

Andreas
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 34636@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 34636
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help