[Top][All Lists]

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

Re: Having a problem invoking curl only when using guix pull

From: John Soo
Subject: Re: Having a problem invoking curl only when using guix pull
Date: Thu, 16 May 2019 17:21:29 -0700

Hi Brian,

Others may correct me if I’m wrong here, but during the build phase, network io 
is off limits. This is since there is not way to reliably guarantee the 
contents of things gotten over the network remain unchanged between builds, and 
so would break the immutability guarantees of the package system. 

Again, I could be wrong, I hope others will correct me. 

- John

On May 16, 2019, at 3:53 PM, Brian Woodcox <address@hidden> wrote:

>> Perhaps all you need is to include the curl package in your package's
>> native-inputs field.
>> Also as a side note, I'm not entirely sure if using open-input-pipe would be
>> considered good practice for packages as far as reproducibility is concerned.
>> Perhaps someone else can comment on that.
>> But another option you might want to consider is using the built in web 
>> modules.
>> For example:
>>  #:use-module (web client)
>>  #:use-module (web uri)
>>  ...
>>    (let* ((out (call-with-values (lambda () (http-get (string->uri 
>> %api-url)))
>>                  (lambda (response body) body)))
>>           ...
>> I'm not sure if that's the most elegant way to do it, but it seems to work.
>> There's also a curl module for guile, although I'm not sure if guix will let 
>> you
>> import it or not.
> Hi ison,
> Unfortunately that doesn’t work, due to tls not being available.
> See the bug I reported here —> 
> <>
> Thanks for the effort though.
> Brian.

reply via email to

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