From: Ryan Prior via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 45453@debbugs.gnu.org
Subject: bug#45453: Error when I try to build a package using a JSON definition
Date: Sun, 27 Dec 2020 00:38:18 +0000 [thread overview]
Message-ID: <87wnx4nkx1.fsf@protonmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
Hi guix! Today I wrote a package in Guile and then decided to try and
reproduce the same thing using JSON, but I hit a snag. I'm attaching
the package definition in its Guile and JSON forms, along with the error
I get when I try to build the package using `guix build -f countdown.json'.
Any idea what the issue here is or how I should go about debugging?
Thank you!
Ryan
[-- Attachment #2: countdown.scm --]
[-- Type: application/octet-stream, Size: 1434 bytes --]
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
(define-module (testing countdown)
#:use-module (gnu packages golang)
#:use-module (gnu packages terminals)
#:use-module (gnu packages textutils)
#:use-module (guix build-system go)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages))
(define-public countdown
(package
(name "countdown")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/antonmedv/countdown")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0pdaw1krr0bsl4amhwx03v2b02iznvwvqn7af5zp4fkzjaj14cdw"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/antonmedv/countdown"))
(native-inputs
`(("go-github.com-mattn-go-runewidth@0.0.4-1.703b5e6" ,go-github.com-mattn-go-runewidth)
("go-github.com-nsf-termbox-go@0.0.0-1.288510b" ,go-github.com-nsf-termbox-go)))
(home-page "https://github.com/antonmedv/countdown")
(synopsis "Counts to zero with a text user interface.")
(description
"Countdown provides a fancy text display while it counts down to zero from a starting point you provide. The user can pause and resume the countdown from the text user interface.")
(license license:expat)))
[-- Attachment #3: countdown.json --]
[-- Type: application/json, Size: 699 bytes --]
[-- Attachment #4: countdown-build.out.txt --]
[-- Type: text/plain, Size: 2002 bytes --]
Starting download of /tmp/guix-file.vO9g3u
From https://github.com/antonmedv/countdown/archive/v1.0.0.tar.gz...
following redirection to `https://codeload.github.com/antonmedv/countdown/tar.gz/v1.0.0'...
In procedure getaddrinfo: Name or service not known
failed to download "/tmp/guix-file.vO9g3u" from "https://github.com/antonmedv/countdown/archive/v1.0.0.tar.gz"
Backtrace:
In ice-9/boot-9.scm:
1736:10 19 (with-exception-handler _ _ #:unwind? _ # _)
1731:15 18 (with-exception-handler #<procedure 7f089852ec30 at icâ¦> â¦)
In guix/status.scm:
780:4 17 (call-with-status-report _ _)
In ice-9/boot-9.scm:
1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
632:37 15 (thunk)
1301:8 14 (call-with-build-handler #<procedure 7f089852e2d0 at gâ¦> â¦)
In guix/scripts/build.scm:
499:2 13 (_)
In srfi/srfi-1.scm:
673:15 12 (append-map #<procedure 7f08966f20a0 at guix/scripts/bâ¦> â¦)
586:17 11 (map1 ((file . "countdown.json") (build-mode . 0) # # â¦))
In guix/scripts/build.scm:
522:38 10 (_ _)
In guix/import/json.scm:
90:21 9 (json->scheme-file _)
In ice-9/boot-9.scm:
1731:15 8 (with-exception-handler #<procedure 7f0898531de0 at icâ¦> â¦)
In guix/import/json.scm:
68:18 7 (_)
In srfi/srfi-1.scm:
460:18 6 (fold #<procedure 7f0896697d68 at guix/import/json.scmâ¦> â¦)
In guix/import/json.scm:
77:54 5 (_ (("native-inputs" . #("go-github.com-mattn-gâ¦" â¦)) â¦) â¦)
In guix/import/utils.scm:
122:33 4 (alist->package (("native-inputs" . #("go-githuâ¦" â¦)) â¦) â¦)
In ice-9/ports.scm:
440:11 3 (call-with-input-file #f #<procedure 7f08973ad340 at gâ¦> â¦)
In unknown file:
2 (open-file #f "r" #:encoding #f #:guess-encoding #f)
In ice-9/boot-9.scm:
1669:16 1 (raise-exception _ #:continuable? _)
1669:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Wrong type (expecting string): #f
next reply other threads:[~2020-12-27 0:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-27 0:38 Ryan Prior via Bug reports for GNU Guix [this message]
2020-12-27 2:28 ` bug#45453: Error when I try to build a package using a JSON definition Julien Lepiller
2020-12-27 3:19 ` Ryan Prior via Bug reports for GNU Guix
2020-12-27 10:40 ` Ricardo Wurmus
2020-12-27 10:38 ` Ricardo Wurmus
2020-12-27 11:08 ` Ricardo Wurmus
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnx4nkx1.fsf@protonmail.com \
--to=bug-guix@gnu.org \
--cc=45453@debbugs.gnu.org \
--cc=rprior@protonmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).