From 2e8f9ac9446110a3e225ae8384055d83f29fff12 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Sat, 4 May 2024 21:30:26 -0700 Subject: [PATCH] Warn on untrusted client settings being ignored These are such a footgun and trip people up a lot. Let's make Lix louder about this. Related: https://git.lix.systems/lix-project/lix/issues/261 Change-Id: I6a8d57c9817caaa6b0cbf886c615dda51038f628 --- src/libstore/daemon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc index 6a3035dda..242b4ddc6 100644 --- a/src/libstore/daemon.cc +++ b/src/libstore/daemon.cc @@ -253,7 +253,7 @@ struct ClientSettings else if (setSubstituters(settings.substituters)) ; else - debug("ignoring the client-specified setting '%s', because it is a restricted setting and you are not a trusted user", name); + warn("Ignoring the client-specified setting '%s', because it is a restricted setting and you are not a trusted user", name); } catch (UsageError & e) { warn(e.what()); }