Subject: bug#36333: Misleading hint for url-fetch

From: Ludovic Courtès <[email-masked]>
Date: Mon, 24 Jun 2019 21:51:33 +0200

Hello,

Tobias Geerinckx-Rice <[email-masked]> skribis:

> I just encountered the following:
>
>  foo.scm:4:2: error: url-fetch: unbound variable
>  hint: Did you forget `(use-modules (guix build download))'?
>
> Actually importing that module, instead of (guix download), will cause
> some other very hard-to-debug error that I can't remember but
> coincidentally helped someone fix on #guix the other day.

Oh, bad hint indeed.

Now, the program cannot determine that of the two ‘url-fetch’, only one
makes sense.

Should it search further and propose all the possible options?  In
general there won’t be more than a couple of options.

Thanks,
Ludo’.