Subject: bug#37160: guix lint --checkers=refresh fails

From: Ludovic Courtès <[email-masked]>
Date: Tue, 27 Aug 2019 11:44:32 +0200

Hi Jonathan,

Jonathan Brielmaier <[email-masked]> skribis:

> During testing various guix commands on openSUSE Tumbleweed with the
> openSUSE package, I found a strange error. This happens with guix 1.0.1
> and d78bc23411 as openSUSE packages.

I cannot reproduce it on current master, on Guix System.

> Steps to reproduce:
> * Install Tumbleweed
> $ sudo zypper install guix
> $ sudo systemctl start guix-daemon
> $ guix install nss-certs
> $ export
> SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
> $ export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
> $ guix lint --checkers=refresh hello
> Backtrace:[email-masked] [refresh]...
>            8 (apply-smob/1 #<catch-closure 7f611c41c7c0>)
> In ice-9/boot-9.scm:
>     705:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  6 (_ #(#(#<directory (guile-user) 7f611c43b140>)))
> In guix/ui.scm:
>   1747:12  5 (run-guix-command _ . _)
> In srfi/srfi-1.scm:
>     640:9  4 (for-each #<procedure 7f611af598e0 at guix/scripts/lin…> …)
> In guix/scripts/lint.scm:
>    1152:4  3 (run-checkers #<package [email-masked] gnu/packages/base.s…> …)
> In srfi/srfi-1.scm:
>     640:9  2 (for-each #<procedure 7f6110857820 at guix/scripts/lin…> …)
> In guix/scripts/lint.scm:
>     954:2  1 (check-for-updates #<package [email-masked] gnu/packages/ba…>)
> In ice-9/boot-9.scm:
>     829:9  0 (catch srfi-34 #<procedure 7f611074a3c0 at guix/script…> …)
>
> ice-9/boot-9.scm:829:9: In procedure catch:
> Wrong type to apply: #f

This backtrace is not from current master (there’s now a new (guix lint)
module.)  Could you post the backtrace for master?

Thanks,
Ludo’.