all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Vollmert <rob@vllmrt.net>
To: John Soo <jsoo1@asu.edu>
Cc: guix-devel@gnu.org
Subject: Re: help with a confusing error: url-fetch, hash, invalid keyword #vu8
Date: Mon, 18 Nov 2019 22:06:09 +0100	[thread overview]
Message-ID: <84F71CF4-3340-461C-A7F5-A4D20E4EE920@vllmrt.net> (raw)
In-Reply-To: <BBD7F2BE-8D31-4AB6-9050-83166657E45E@asu.edu>

On 18. Nov 2019, at 21:40, John Soo <jsoo1@asu.edu> wrote:
> 
> Hi Robert,
> 
> Interesting. Looks alright to me. Also I did just package ormolu myself and everything worked alright. One thing to try is using `guix repl` to reproduce the error. Can you open one up and see what happens?

Actually that helped, thanks! Here’s what I did (mostly so I don’t need to figure that out again):

1. made a proper module out of the file ormolu.scm
2. ran `guix repl` in the directory with ormolu.scm

scheme@(guix-user)> ,load /path/to/ormolu.scm
scheme@(guix-user)> ghc-ormolu
$1 = #<package ghc-ormolu@0.0.1.0 /home/rob/blog-test/ormolu.scm:9 300ba50>
scheme@(guix-user)> (package-source ghc-ormolu)
$2 = #<origin "https://hackage.haskell.org/package/ormolu/ormolu-0.0.1.0.tar.gz" mbkimdo73ovmqpmg6zxqm46joztju3n3mw4ubeudg3d22ismsxoa () 318b420>
scheme@(guix-user)> (origin-sha256 (package-source ghc-ormolu))
$3 = #vu8(96 84 134 13 223 219 170 200 61 134 246 111 6 115 201 118 102 154 109 187 101 185 64 146 131 54 199 173 34 76 149 220)
scheme@(guix-user)> ,use (gnu packages haskell)
scheme@(guix-user)> (package-source ghc)
$4 = #<origin "https://www.haskell.org/ghc/dist/8.4.3/ghc-8.4.3-src.tar.xz" vzd27wuylayn5careqzflkrxitp3sid4xgak65bzgkmlfnrbmdla () 2f20420>
scheme@(guix-user)> (origin-sha256 (package-source ghc))
$5 = #vu8(174 71 175 218 152 88 48 222 136 17 36 50 85 170 55 68 223 185 32 124 185 128 175 116 57 50 152 178 182 33 96 214)

So far so good, they look similar.

scheme@(guix-user)> (origin-method (package-source ghc))
$6 = #<procedure url-fetch (url hash-algo hash #:optional name #:key system guile)>
scheme@(guix-user)> (origin-method (package-source ghc-ormolu))
$7 = #<procedure url-fetch (url file #:key timeout verify-certificate? mirrors content-addressed-mirrors hashes print-build-trace?)>

Aha! It turns out the error was in importing (guix build download) as opposed to (guix download).

I’d added that import due to the “helpful”

$ guix build -f ormolu.scm
ice-9/eval.scm:223:20: In procedure proc:
error: url-fetch: unbound variable
hint: Did you forget `(use-modules (guix build download))'?

Sigh.

Anyway, fixed for now, thank you!

Cheers
Rob

  reply	other threads:[~2019-11-18 21:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-18 15:28 help with a confusing error: url-fetch, hash, invalid keyword #vu8 Robert Vollmert
2019-11-18 20:40 ` John Soo
2019-11-18 21:06   ` Robert Vollmert [this message]
2019-11-18 21:13     ` John Soo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84F71CF4-3340-461C-A7F5-A4D20E4EE920@vllmrt.net \
    --to=rob@vllmrt.net \
    --cc=guix-devel@gnu.org \
    --cc=jsoo1@asu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.