From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#33897: 'guix publish' is unable to serve narinfos for dead items Date: Sun, 26 May 2019 01:37:39 +0200 Message-ID: <87r28mnm0s.fsf@gnu.org> References: <87k1jt8gop.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUgEl-0002wJ-Jv for bug-guix@gnu.org; Sat, 25 May 2019 19:38:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUgEk-0001sj-I4 for bug-guix@gnu.org; Sat, 25 May 2019 19:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUgEk-0001sP-Cd for bug-guix@gnu.org; Sat, 25 May 2019 19:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUgEk-0002ru-94 for bug-guix@gnu.org; Sat, 25 May 2019 19:38:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87k1jt8gop.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 28 Dec 2018 22:49:58 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 33897-done@debbugs.gnu.org Ludovic Court=C3=A8s skribis: > =E2=80=98render-narinfo/cached=E2=80=99 in =E2=80=98guix publish=E2=80=99= uses =E2=80=98hash-part->path=E2=80=99 to go > from /xyz.narinfo to, say, /gnu/store/xyz-guile-2.2.4. > > The problem is that =E2=80=98hash-part->path=E2=80=99 is an RPC that work= s only if xyz > corresponds to a live item; in other cases, it returns the empty > string. Consequently, if /gnu/store/xyz-guile-2.2.4 has been GC=E2=80=99= d, > =E2=80=98guix publish=E2=80=99 returns 404 for /xyz.narinfo, even if it a= ctually has the > narinfo somewhere in cache. > > This defeats the intended behavior of =E2=80=98--cache=E2=80=99 and =E2= =80=98--ttl=E2=80=99. Fixed in 493375cdb23fc1416348da584f17bec7171faadd. Ludo=E2=80=99.