Skip to content

Commit 9b82ecb

Browse files
committed
nix search: Warn about cached results
1 parent c8235c5 commit 9b82ecb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nix/search.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ struct CmdSearch : SourceExprCommand, MixJSON
185185

186186
if (useCache && pathExists(jsonCacheFileName)) {
187187

188+
warn("using cached results; pass '-u' to update the cache");
189+
188190
Value vRoot;
189191
parseJSON(*state, readFile(jsonCacheFileName), vRoot);
190192

0 commit comments

Comments
 (0)