guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Package file indexing


From: Pierre Neidhardt
Subject: Re: Package file indexing
Date: Fri, 10 Jan 2020 13:35:23 +0100

Christopher Baines <address@hidden> writes:

> So, to elaborate a bit more on the architecture I've had in mind for
> dealing with the actual nars…
>
> I see the scope of the Guix Data Service extending as far as what nars
> are available for outputs, and what outputs are associated with each
> revision, but I don't think it should store the actual nar files.
>
> What you could have is another service, which subscribes to the Guix
> Data Service to find out about new revisions and nars (from build
> servers). When this new service finds out about Guix revisions, it would
> ask this Guix Data Service for all the outputs, and store this away in a
> database. When it finds out about nars, it would download them, and
> maybe extract out the list of files.
>
> I think this setup would allow this new service to construct a file
> containing information about all files in all the outputs for a
> revision, which it has nars available for. This file could then be
> downloaded, and searched through when you want to find which output
> contains a file.

Tell me if I understood you correctly: in this scenario we would modify
the Guix derivation process to store the file list in the nars.  Is this 
correct?

Question about the Guix Data Service: I suppose that the information about the 
outputs
of a given revision is built incrementally, i.e. as they get published
by the build farm.  Is this correct?

If so, then the file index service needs to update the database
incrementally as well.  So we need some entry point to fetch the
information delta between now and the last time we fetch the information.

Please correct me if I got it all wrong! :D

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]