From: Brice Waegeneire <brice@waegenei.re>
To: 41236@debbugs.gnu.org
Subject: bug#41236: guix deploy error message can be too obscure to understand
Date: Wed, 13 May 2020 15:42:16 +0000 [thread overview]
Message-ID: <417ceba474851b0a24efa886591952d0@waegenei.re> (raw)
Hello again,
Guix deploy errors message can be hard to understand, see the following
output for example:
--8<---------------cut here---------------start------------->8---
$ guix deploy -Lmodules systems/hystou-p04.scm
guix deploy: warning: failed to load '(config workstation)':
no code for module (gnu services lightdm)
The following 1 machine will be deployed:
abricot
guix deploy: deploying to abricot...
sending 0 store items (0 MiB) to '192.168.10.10'...
sending 0 store items (0 MiB) to '192.168.10.10'...
guix deploy: error: failed to deploy abricot: Wrong type argument in
position 1 (expecting struct): ~S
--8<---------------cut here---------------end--------------->8---
By using “guix repl“ I managed to understand that I was setting a field
to
a undeclared variable: “keyboard-layout“. A stupid mistake on my part
that
should have been trivial to spot took hours instead because the error
message was obscure.
--8<---------------cut here---------------start------------->8---
(operating-system
…
(bootloader
(bootloader-configuration
…
(keyboard-layout keyboard-layout))))
--8<---------------cut here---------------end--------------->8---
- Brice
reply other threads:[~2020-05-13 15:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=417ceba474851b0a24efa886591952d0@waegenei.re \
--to=brice@waegenei.re \
--cc=41236@debbugs.gnu.org \
/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).