Subject: Re: bug#47226: fennel package not working with generic-html refresh updater

From: Ludovic Courtès <[email-masked]>
Date: Thu, 18 Mar 2021 14:51:12 +0100

Léo Le Bouter <[email-masked]> skribis:

> After applying:
>
> diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
> index edb3f85109..36fd1eb066 100644
> --- a/gnu/packages/lua.scm
> +++ b/gnu/packages/lua.scm
> @@ -1175,6 +1175,8 @@ enabled.")
>                (snippet
>                 '(begin
>                    (delete-file "fennelview.lua") #t))))
> +    (properties
> +     '((release-monitoring-url . "https://fennel-lang.org/downloads/")
> ))
>      (build-system gnu-build-system)
>      (arguments
>       '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs
> "out")))
>
> $ ./pre-inst-env guix refresh fennel
> gnu/packages/lua.scm:1162:2: warning: no updater for fennel
>
> It should otherwise clearly work since 
> https://fennel-lang.org/downloads/ is a classic directory listing like
> the generic-html updater should support.

‘generic-html’ is for packages that use ‘url-fetch’ and a tarball
fetched over HTTP(S).  It does not apply to Fennel.

Here we should use the relevant sr.ht HTTP API, similar to what (guix
import github) does, or possibly a generic ‘git-tag’ updater as you
proposed.

Ludo’.