aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-29 15:22:05 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-29 15:22:05 +0200
commit9b82ecbae04e36cb8f009510716268fa72a067b8 (patch)
tree45a17c06d21fa5e432325837fce9ea1bf3550f08 /src
parentc8235c531355d612d48f633f8a6ace5fcd97f5fe (diff)
nix search: Warn about cached results
Diffstat (limited to 'src')
-rw-r--r--src/nix/search.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/search.cc b/src/nix/search.cc
index 5bb376f8f..6e099ce37 100644
--- a/src/nix/search.cc
+++ b/src/nix/search.cc
@@ -185,6 +185,8 @@ struct CmdSearch : SourceExprCommand, MixJSON
if (useCache && pathExists(jsonCacheFileName)) {
+ warn("using cached results; pass '-u' to update the cache");
+
Value vRoot;
parseJSON(*state, readFile(jsonCacheFileName), vRoot);