nix search: Warn about cached results
This commit is contained in:
parent
c8235c5313
commit
9b82ecbae0
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ struct CmdSearch : SourceExprCommand, MixJSON
|
||||||
|
|
||||||
if (useCache && pathExists(jsonCacheFileName)) {
|
if (useCache && pathExists(jsonCacheFileName)) {
|
||||||
|
|
||||||
|
warn("using cached results; pass '-u' to update the cache");
|
||||||
|
|
||||||
Value vRoot;
|
Value vRoot;
|
||||||
parseJSON(*state, readFile(jsonCacheFileName), vRoot);
|
parseJSON(*state, readFile(jsonCacheFileName), vRoot);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue