guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#45028] [PATCH] offload: Print warning in context.


From: Julien Lepiller
Subject: [bug#45028] [PATCH] offload: Print warning in context.
Date: Thu, 3 Dec 2020 20:52:37 +0100

Hi Guix, attached is a patch to add context to the warning about the
system field. When offloading, we get this message if we haven't
updated our machines.scm:

guix offload: warning: The 'system' field is deprecated, please use
'systems' instead.

and it's not clear what system field this message is refering to
(especially for me, since I simply re-enabled offloading after a few
months by copying my old backup machines.scm).

Now the message is:

/etc/guix/machines.scm:9:6: warning: The 'system' field is deprecated,
please use 'systems' instead.

which directs the user to the right file, and line (so if you have many
offload machines, you know where to fix).

Since the message comes from the daemon, you need to run the daemon
from your guix checkout to test the patch.

Attachment: 0001-offload-Print-warning-in-context.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]