nix search: Warn about cached results

This commit is contained in:
Eelco Dolstra 2017-08-29 15:22:05 +02:00
parent c8235c5313
commit 9b82ecbae0
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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);