Subject: [bug#75782] [PATCH cuirass] remote-server: Disable url-fetch* fallback when triggering substitutes.

From: Ludovic Courtès <[email-masked]>
Date: Thu, 13 Feb 2025 16:09:20 +0100

Hi,

vicvbcun <[email-masked]> skribis:

> If an output is larger than the configured cache bypass threshold and the
> substitute hasn't already been baked, guix publish returns a 404 response and
> schedules baking.  This error code causes `url-fetch*' to instead try fetching
> the narinfo from the Internet Archive.  Suppress this fallback behaviour as
> the sole purpose is triggering the baking of substitutes.
>
> * src/cuirass/scripts/remote-server.scm (trigger-substitutes-baking): Bind
> `%download-methods' to the empty list befor calling `url-fetch*'.

Good catch!

> +       (parameterize
> +           ;; XXX: guix publish returns a 404 response when the output is
> +           ;; large and has not already been baked.  By default, this causes
> +           ;; `url-fetch*' to fall back to the Internet Archive.  Disable
> +           ;; this.
> +           ((%download-methods '()))
> +         (url-fetch* narinfo-url tmp-file))))))

Shouldn’t it be '(upstream) rather than '()?

(I’m looking at guix/build/download.scm.)

Thanks,
Ludo’.