[Top][All Lists]

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

Re: ???guix publish??? as a content-addressed file server

From: John Darrington
Subject: Re: ???guix publish??? as a content-addressed file server
Date: Wed, 20 Jul 2016 18:04:47 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

It sounds like a usefull capability.

But presumably it depends on your localhost having a TCP/IP stack
and a http server installed.

It would be better if it could just use a socket or even just the filesystem.


On Wed, Jul 20, 2016 at 05:25:30PM +0200, Ludovic Court??s wrote:
     Until now, if had a source file in its store (the result
     of an ???origin???), you could get it via substitutes.  However, with
     substitutes disabled, was of no help, even though it did
     have the source file.
     Commit ff6638d112d794c9c433731643711932452fd2ff helps address that: it
     augments ???guix publish??? such that it can be used as a content-addressed
     mirror for source files??.
     If you run ???guix publish -p 9999??? on your machine, and if
     hello-2.10.tar.gz is in the store, then this URL:
     ??? gives you hello-2.10.tar.gz.
     This works by constructing the corresponding store file name, assuming
     the file being requested results from a fixed-output derivation using
     the same hash algorithm (SHA256 here) or was added with ???add-to-store???.
     That the hash algorithm must match is a limitation, but it???s probably
     ???good enough??? for our purposes.
     Eventually I think we???ll run it on our build farm and add the URL to
     ???%content-addressed-mirrors??? in (guix download).
     Feedback welcome.  :-)

Avoid eavesdropping.  Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

reply via email to

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