From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IIPOM/lymF8yCgAA0tVLHw (envelope-from ) for ; Tue, 27 Oct 2020 19:20:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yH56L/lymF/WCgAAB5/wlQ (envelope-from ) for ; Tue, 27 Oct 2020 19:20:25 +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 6DA7C94053B for ; Tue, 27 Oct 2020 19:20:25 +0000 (UTC) Received: from localhost ([::1]:56390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXUW8-0001WS-BO for larch@yhetil.org; Tue, 27 Oct 2020 15:20:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXUVn-0001V0-0L for guix-patches@gnu.org; Tue, 27 Oct 2020 15:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXUVm-00039X-MR for guix-patches@gnu.org; Tue, 27 Oct 2020 15:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXUVm-00036v-Ig for guix-patches@gnu.org; Tue, 27 Oct 2020 15:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44193] [PATCH 0/1] 'guix publish --cache' can publish items not yet cached Resent-From: Miguel =?UTF-8?Q?=C3=81ngel?= Arruga Vivas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Oct 2020 19:20:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 44193@debbugs.gnu.org Received: via spool by 44193-submit@debbugs.gnu.org id=B44193.160382636611913 (code B ref 44193); Tue, 27 Oct 2020 19:20:02 +0000 Received: (at 44193) by debbugs.gnu.org; 27 Oct 2020 19:19:26 +0000 Received: from localhost ([127.0.0.1]:45912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXUVC-000364-4y for submit@debbugs.gnu.org; Tue, 27 Oct 2020 15:19:26 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXUVA-00035q-R8 for 44193@debbugs.gnu.org; Tue, 27 Oct 2020 15:19:25 -0400 Received: by mail-wm1-f68.google.com with SMTP id k18so2588386wmj.5 for <44193@debbugs.gnu.org>; Tue, 27 Oct 2020 12:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=d7PyFEerk8tzZbe281JFioEJ13Of2LKAs8e765+ccCY=; b=KA5poTJvhjmwByLkU/uVW2nxk8RdwsJ7pXjHa6fmeciqiTy9IJ0zw5R12mi4Z4YZYC iM8flIoApbD0qZ3Buey30EcXI+kHjLAtBa3SR2lDJcFuOLqhIOY7X0EijXMHrxmAI0Sp r1/bFMcoZOYq4Q2MDEDXCE874ZDPMGP2gmAIyy+iGiC1soBFXGLfqAnvUSVh/eOUxz9y N0Dzq/U24YHmRaWjJvxSVtoUzAOa+1/JmoIlr2BLmVzuFwoCq9EvM873aSU2Un6lVYrl 7TlKKW7Z/yT0YU6yAaRP4U8LMLpCYwFUyBHZq8MWEOmVRFkUsAbRNI0j+yfmjzp+c5cA BHBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=d7PyFEerk8tzZbe281JFioEJ13Of2LKAs8e765+ccCY=; b=mllDfKglTs34ViG5CpHSpOOZUXCYfvy51voEJfskahExBcBwKj37xs1i9xhN2IEXnF pUC8mPf8nm5BkOeUUaJ340N8ojI3Kp3NPCF2DSavzy2fmxacRZOGRdO63LYOfnpPbxyd GqvnJazSRa0D7qtvm60xmiYs+SoyrKvE7ts5JhahjmPq+/nXLb2wcW8r0/3PKrFC/QKQ TCI+Z6cN7xNwCOdZb1VPIU4pIswBYBPNyVVYNuo8K76InrnCG9WDb71wmHBClecFM3Qb FFb9xTM1JyCWlmMZIgNilrfNN2KMdk4Y4I8VNLwok8FTKhoqLunjlZC+vBR7t4+torsR R6xw== X-Gm-Message-State: AOAM5323i8P9KtkAALIXNR5/dOH0Wmyc5OqD5D48V+ZrtFP7R8sBEiBE +XxwH4fVSYreKnpwQjpkdCHnMNA1YqvCzg== X-Google-Smtp-Source: ABdhPJwi1hrX4IoxfkFWY8uAHkOAwyIsP9L7kDAOswhn9f1Qx2Hc35e/kgEgYT5yYCSEuc+Q7hKEqg== X-Received: by 2002:a1c:3503:: with SMTP id c3mr4183261wma.43.1603826358766; Tue, 27 Oct 2020 12:19:18 -0700 (PDT) Received: from unfall (218.139.134.37.dynamic.jazztel.es. [37.134.139.218]) by smtp.gmail.com with ESMTPSA id u3sm3302598wrq.19.2020.10.27.12.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 12:19:17 -0700 (PDT) From: Miguel =?UTF-8?Q?=C3=81ngel?= Arruga Vivas References: <20201024144929.4529-1-ludo@gnu.org> <87v9ey5u2e.fsf@gmail.com> <87pn56dzdp.fsf@gnu.org> <874kmiqkla.fsf@gmail.com> <87r1plb6sd.fsf@gnu.org> Date: Tue, 27 Oct 2020 20:19:17 +0100 In-Reply-To: <87r1plb6sd.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 26 Oct 2020 11:50:10 +0100") Message-ID: <87eeljo4sq.fsf@gmail.com> 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: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.8 (/) 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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=KA5poTJv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 0.09 X-TUID: kNKUtZ2G2abV Hi, 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. 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