GNU bug report logs -
#44193
[PATCH 0/1] 'guix publish --cache' can publish items not yet cached
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 24 Oct 2020 14:50:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 44193 <at> debbugs.gnu.org (full text, mbox):
Hi,
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi,
>
> Miguel Ángel Arruga Vivas <rosen644835 <at> gmail.com> skribis:
>
>> I fully agree with that. Adding 202 together with 404 would be enough
>> as an start, wouldn't it?
>> -------------------------------8<-----------------------------
>> (cache-narinfo! url (hash-part->path hash-part) #f
>> (if (or (= 404 code) (= 202 code))
>> ttl
>> %narinfo-transient-error-ttl))
>> ------------------------------->8-----------------------------
>
> Yes, exactly!
Should I, or you, push this before the release? It's probably worth
having it already for 1.2.
The optimization could be cool too: IIUC could be only the other if
branch the one returning the 202 when it's widely accepted, perhaps I
should have explicitly pointed out that earlier instead of driving too
much the conversation to the return code, sorry for that. :-(
Happy hacking!
Miguel
This bug report was last modified 4 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.