diff options
author | Shea Levy <shea@shealevy.com> | 2023-02-02 06:03:45 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2023-02-02 06:03:45 -0500 |
commit | 895c525d04901022b7e0c4586ee12774fb4f8c6f (patch) | |
tree | 2730819b33205699adb44f7222656d12ea7dbaa9 /src/libstore | |
parent | 92edc3836904c2448387be11330a6e7c62593873 (diff) |
daemon: Warn on old clients passing unexpected plugin-files.
The setting itself was already ignored due to exception trying to set pluginFiles.
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/daemon.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc index e2a7dab35..d6621ec0b 100644 --- a/src/libstore/daemon.cc +++ b/src/libstore/daemon.cc @@ -236,6 +236,10 @@ struct ClientSettings // the daemon, as that could cause some pretty weird stuff if (parseFeatures(tokenizeString<StringSet>(value)) != settings.experimentalFeatures.get()) debug("Ignoring the client-specified experimental features"); + } else if (name == settings.pluginFiles.name) { + if (tokenizeString<Paths>(value) != settings.pluginFiles.get()) + warn("Ignoring the client-specified plugin-files.\n" + "The client specifying plugins to the daemon never made sense, and was removed in Nix >=2.14."); } else if (trusted || name == settings.buildTimeout.name |