From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Package file indexing Date: Thu, 09 Jan 2020 12:19:42 +0100 Message-ID: <874kx4anch.fsf@ambrevar.xyz> References: <20190314204941.GA21065@jasmine.lan> <87mulx9kuv.fsf@nckx> <87zhpx846u.fsf@ambrevar.xyz> <87bm21y2s2.fsf_-_@gnu.org> <87imw7cpe7.fsf@bababa.i-did-not-set--mail-host-address--so-tickle-me> <87pnqdhkpf.fsf@gnu.org> <87imlt3hr2.fsf@ambrevar.xyz> <87png11xgi.fsf@cbaines.net> <87tv5cpypp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52304) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipVqt-0006zd-RZ for guix-devel@gnu.org; Thu, 09 Jan 2020 06:19:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipVqs-0006oZ-CZ for guix-devel@gnu.org; Thu, 09 Jan 2020 06:19:47 -0500 In-Reply-To: <87tv5cpypp.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Christopher Baines Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > =E2=80=A6 I agree. I think file search has to be a service providing acc= ess to > a fast database. Good point. Let's go in that direction then. > I think the Guix Data Service is a good fit since it knows about > packages, derivations, commits, and how they map to each other. :-) It > could download nars and do the equivalent of =E2=80=98guix archive -t=E2= =80=99 to get > the list of file names. Are you suggesting that guix "filesearch" polls a specific instance of the Guix Data Service (e.g. data.guix.gnu.org) to download the file index fro the current Guix revision? What if the file index for a specific Guix commit (e.g. a very recent one) is not yet available? I suggest we fall back to the first older index that's available, with a warning. Thoughts? > There=E2=80=99s an argument that it would be nice if file search were > implemented as part of =E2=80=98guix publish=E2=80=99 because that would = immediately > benefit everyone without going through complex setups. However, =E2=80= =98guix > publish=E2=80=99 wouldn=E2=80=99t really know what to index upfront, or m= aybe it could > index lazily like it does with =E2=80=9Cbaking=E2=80=9D. I don't understand why `guix publish' wouldn't work here. Can you detail? Thanks! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl4XDE4ACgkQm9z0l6S7 zH8/PAf8CVhkRSo7d3R2R7NOIHy560WfGOVkDJRu3nH69Ik0LAPCnnsqFuPJiGak 1UvZoalDTI/0v3+Kl8LwFFHCEV4WlDOUIDGPWRQf+w+GhaBTa7iuP+Ir53ITamtE bP+XBqT/SpZgemtOOVEeTH75qG9Q6qg9qBtY428pElN3o3w6SXOb/8N8fshF7UWZ SJ/wwieEG3dJh9sjlYnCUVuWzNvrr1Uc9fN6GGN/+Jws0gqLCko1vhQa9cN8jU1y GgY3JvRKVsBhRMs25CZVyQM3tkl+lVZr6wcKsWmbA40ndruxfEkG0R0yPUgq5Mf9 E7XPOHdiFmauRqUOMdaklEQTNBD6Bw== =fG43 -----END PGP SIGNATURE----- --=-=-=--