aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-02-02 12:35:51 +0100
committerGitHub <noreply@github.com>2023-02-02 12:35:51 +0100
commitb574c70ccbc0c22fa3c5df12c6246a10eff1a5bf (patch)
tree1f11868aacde8ed7ae55235f137bcdc3ef126d02 /src/libstore
parentcde2e2a4040dbf3b8649c463e547f8bcc9631fdc (diff)
parent895c525d04901022b7e0c4586ee12774fb4f8c6f (diff)
Merge pull request #7736 from shlevy/plugin-files-daemon
Don't send plugin-files to the daemon.
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/daemon.cc4
-rw-r--r--src/libstore/remote-store.cc1
2 files changed, 5 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
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index ff57a77ca..d1296627a 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -266,6 +266,7 @@ void RemoteStore::setOptions(Connection & conn)
overrides.erase(settings.useSubstitutes.name);
overrides.erase(loggerSettings.showTrace.name);
overrides.erase(settings.experimentalFeatures.name);
+ overrides.erase(settings.pluginFiles.name);
conn.to << overrides.size();
for (auto & i : overrides)
conn.to << i.first << i.second.value;