Subject: [bug#74542] [PATCH v2 05/16] packages: Factorize ‘all-packages’.

From: Maxim Cournoyer <[email-masked]>
Date: Fri, 29 Nov 2024 23:53:45 +0900

Hi Ludovic,

Ludovic Courtès <[email-masked]> writes:

> * gnu/packages.scm (all-packages): New procedure.
> * etc/source-manifest.scm (all-packages): Remove.
> * guix/scripts/graph.scm (all-packages): Remove.
> * guix/scripts/refresh.scm (all-packages): Remove.
> * guix/scripts/weather.scm (all-packages): Remove.

LGTM.

[...]

> @@ -253,6 +254,23 @@ (define* (fold-packages proc init
>                                  init
>                                  modules))
>  
> +(define all-packages
> +  (mlambda ()
> +    "Return the list of all public packages, including replacements and hidden
> +packages, excluding superseded packages."

Reading the above doc made me question; are replacements always supposed
to be made public?  I typically would leave them private to avoid
cluttering the CLI with duplicate packages.

-- 
Thanks,
Maxim