unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: 33897-done@debbugs.gnu.org
Subject: bug#33897: 'guix publish' is unable to serve narinfos for dead items
Date: Sun, 26 May 2019 01:37:39 +0200	[thread overview]
Message-ID: <87r28mnm0s.fsf@gnu.org> (raw)
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")

Ludovic Courtès <ludo@gnu.org> skribis:

> ‘render-narinfo/cached’ in ‘guix publish’ uses ‘hash-part->path’ to go
> from /xyz.narinfo to, say, /gnu/store/xyz-guile-2.2.4.
>
> The problem is that ‘hash-part->path’ is an RPC that works 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’d,
> ‘guix publish’ returns 404 for /xyz.narinfo, even if it actually has the
> narinfo somewhere in cache.
>
> This defeats the intended behavior of ‘--cache’ and ‘--ttl’.

Fixed in 493375cdb23fc1416348da584f17bec7171faadd.

Ludo’.

      reply	other threads:[~2019-05-25 23:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-28 21:49 bug#33897: 'guix publish' is unable to serve narinfos for dead items Ludovic Courtès
2019-05-25 23:37 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r28mnm0s.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=33897-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).