[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Package file indexing
From: |
Ludovic Courtès |
Subject: |
Re: Package file indexing |
Date: |
Tue, 26 Mar 2019 13:41:16 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Pierre Neidhardt <address@hidden> skribis:
> Ludovic Courtès <address@hidden> writes:
[...]
>> The daemon could have a special RPC: you give it a file name and it
>> returns a store item (or package+version?) or #f.
>
> I think you meant "store itemS" (plural), no?
Yes.
>> Internally it’d call ‘guix substitute’ to fetch the file index from
>> the substitute server, check its signature, cache it locally, and then
>> look up the file.
>>
>> You should look at how NixOS does it for its ‘command-not-found’ support
>> (I think it’s part of NixOS, not Nix). IIRC they distribute an SQLite
>> database, but it’s a pretty ad-hoc mechanism without authentication.
>
> I could work on this, but that seems like a lot of work, especially for
> me who knows nothing about the daemon (but hey, it's a great opportunity
> to learn!).
Note that the daemon would act as an intermediary, but in practice the
functionality would be very much peripheral to the daemon. IOW, you
don’t need to know about the daemon internals.
Ludo’.
- Improve package search, mikadoZero, 2019/03/14
- Re: Improve package search, Leo Famulari, 2019/03/14
- Re: Improve package search, Tobias Geerinckx-Rice, 2019/03/14
- Re: Improve package search, Tobias Geerinckx-Rice, 2019/03/14
- Re: Improve package search, Pierre Neidhardt, 2019/03/14
- Re: Improve package search, Tobias Geerinckx-Rice, 2019/03/14
- Package file indexing, Ludovic Courtès, 2019/03/23
- Re: Package file indexing, Pierre Neidhardt, 2019/03/25
- Re: Package file indexing,
Ludovic Courtès <=
- Re: Improve package search, mikadoZero, 2019/03/15