From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iOtwEXs8mV8oGAAA0tVLHw (envelope-from ) for ; Wed, 28 Oct 2020 09:40:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YD03DXs8mV+OHQAAbx9fmQ (envelope-from ) for ; Wed, 28 Oct 2020 09:40:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BBF89940366 for ; Wed, 28 Oct 2020 09:40:10 +0000 (UTC) Received: from localhost ([::1]:45940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXhw9-0002EN-8a for larch@yhetil.org; Wed, 28 Oct 2020 05:40:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXhw2-0002EB-1U for guix-patches@gnu.org; Wed, 28 Oct 2020 05:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXhw1-0006ag-ND for guix-patches@gnu.org; Wed, 28 Oct 2020 05:40:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXhw1-0001aD-In for guix-patches@gnu.org; Wed, 28 Oct 2020 05:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44193] [PATCH 0/1] 'guix publish --cache' can publish items not yet cached Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Oct 2020 09:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Miguel =?UTF-8?Q?=C3=81ngel?= Arruga Vivas Cc: 44193@debbugs.gnu.org Received: via spool by 44193-submit@debbugs.gnu.org id=B44193.16038779776046 (code B ref 44193); Wed, 28 Oct 2020 09:40:01 +0000 Received: (at 44193) by debbugs.gnu.org; 28 Oct 2020 09:39:37 +0000 Received: from localhost ([127.0.0.1]:47206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXhvd-0001ZS-KR for submit@debbugs.gnu.org; Wed, 28 Oct 2020 05:39:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXhvb-0001ZF-MH for 44193@debbugs.gnu.org; Wed, 28 Oct 2020 05:39:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40548) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXhvW-0006RC-DX; Wed, 28 Oct 2020 05:39:30 -0400 Received: from vpn-0-27.aquilenet.fr ([2a0c:e300:4:27::]:38306 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kXhvV-0000rS-Q6; Wed, 28 Oct 2020 05:39:30 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20201024144929.4529-1-ludo@gnu.org> <87v9ey5u2e.fsf@gmail.com> <87pn56dzdp.fsf@gnu.org> <874kmiqkla.fsf@gmail.com> <87r1plb6sd.fsf@gnu.org> <87eeljo4sq.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Brumaire an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 28 Oct 2020 10:39:26 +0100 In-Reply-To: <87eeljo4sq.fsf@gmail.com> ("Miguel =?UTF-8?Q?=C3=81ngel?= Arruga Vivas"'s message of "Tue, 27 Oct 2020 20:19:17 +0100") Message-ID: <87lffq665t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: 8yLuorXBGR1O Hi, Miguel =C3=81ngel Arruga Vivas skribis: > Ludovic Court=C3=A8s writes: >> Hi, >> >> Miguel =C3=81ngel Arruga Vivas 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 (=3D 404 code) (=3D 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. Agreed, you can go ahead and push this change. > 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. :-( No problem! Ludo=E2=80=99.