From 9b82ecbae04e36cb8f009510716268fa72a067b8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Aug 2017 15:22:05 +0200 Subject: [PATCH] nix search: Warn about cached results --- src/nix/search.cc | 2 ++ 1 file changed, 2 insertions(+) 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);