From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Woodcox Subject: Re: Having a problem invoking curl only when using guix pull Date: Thu, 16 May 2019 15:49:58 -0600 Message-ID: References: <3483615C-9CB3-4184-B1F4-A4D19542FCA5@inskydata.com> Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hROGr-0006sc-J1 for help-guix@gnu.org; Thu, 16 May 2019 17:50:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hROGq-0003Iz-HH for help-guix@gnu.org; Thu, 16 May 2019 17:50:37 -0400 Received: from mail.inskydata.com ([184.68.229.6]:41458 helo=server.inskydata.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hROGp-0003DN-PI for help-guix@gnu.org; Thu, 16 May 2019 17:50:36 -0400 Received: from [192.168.19.76] (unknown [192.168.19.76]) by server.inskydata.com (Postfix) with ESMTPSA id D425C496EC7F for ; Thu, 16 May 2019 15:50:03 -0600 (MDT) In-Reply-To: <3483615C-9CB3-4184-B1F4-A4D19542FCA5@inskydata.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org >=20 > Hi, >=20 > I=E2=80=99m having problems with a piece of code. >=20 > ;; Retrieve git commit date > (define get-commit-date (lambda _ > (let* ((out (open-input-pipe (format #f "curl --silent '~a'" = %api-url))) > (str (get-string-all out)) > (queryResults (json-string->scm str)) > (date (cdr (hash-get-handle (cdr (hash-get-handle (cdr = (hash-get-handle queryResults "commit")) "author")) "date")))) > (display "Contacting github for commit date...\n") > (close-pipe out) > date))) >=20 > This code sits above my package code and I use it to dynamically = populate my some values when building my package. >=20 > Everything works great and I can install the package locally without = any problems. >=20 > My issue occurs if I try to issue a guix pull to bring this in through = a separate channel. >=20 > When I do that I always get = /gnu/store/=E2=80=A6-bash-minimal-4.4.23/bin/bash: curl: command not = found. >=20 > Any help would be greatly appreciated. >=20 > Thanks. >=20 So I=E2=80=99ve worked on this further and I was able to get the curl = command to run. In the end, it turns out that the networking service is not available = when building a package. It=E2=80=99s probably not worth the trouble to make it work.