unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Advice about guile-spec package definition
@ 2021-03-31 21:13 Jérémy Korwin-Zmijowski
  2021-04-01  7:22 ` Efraim Flashner
  0 siblings, 1 reply; 7+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2021-03-31 21:13 UTC (permalink / raw)
  To: Guix Help

Dear Guixters,

Hope you are doing well !

I am working on the package definition for 
https://framagit.org/Jeko/guile-spec (file: guix.scm). It is a set of
macro based on SRFI-64.

The definition's inputs field is filled with guile-3.0 (or the guix
build reports an error with a stack trace I can't understand haha).

For Guix users willing to try guile-spec before installing it, I know
guix environment can help.

But…

When I use guild (with highest warning level) to compile t.scm[1] in an
environment based on this definition, it raises unknown warnings :

$ guix environment -l guix.scm -- guild compile -W3 /tmp/t.scm
warning: unknown warning type `#{3}#'
wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.2/tmp/t.scm.go'

When I call it outside of the environment, the warning is fine :

$ guild compile -W3 /tmp/t.scm
/tmp/t.scm:3:0: warning: unused variable `name'
wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/t.scm.go'

When I remove Guile from the definition's inputs fiels, the warning is
fine :

$ guix environment -l guix.scm -- guild compile -W3 /tmp/t.scm
/tmp/t.scm:3:0: warning: unused variable `name'
wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/t.scm.go'


[1] t.scm doesn't use guile-spec macro to narrow the context
$ cat /tmp/t.scm 
(use-modules (srfi srfi-64))
(test-begin "group")
(test-assert "test" #t)
(test-end)


How can I make it to work ? Maybe I misuse something here… Let me know
!

Cheers,

Jérémy



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-04-01 13:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 21:13 Advice about guile-spec package definition Jérémy Korwin-Zmijowski
2021-04-01  7:22 ` Efraim Flashner
2021-04-01  9:39   ` Jérémy Korwin-Zmijowski
2021-04-01 10:16     ` Efraim Flashner
2021-04-01 11:21       ` Jérémy Korwin-Zmijowski
2021-04-01 12:17         ` Efraim Flashner
2021-04-01 13:09           ` Jérémy Korwin-Zmijowski

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).