about summary refs log tree commit diff
path: root/src/nix/search.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/search.cc')
-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 5bb376f8f2d1..6e099ce377f1 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);