Merge pull request #7924 from mkenigs/valid

Always set valid in path-info --json output
This commit is contained in:
Eelco Dolstra 2023-03-02 09:58:20 +01:00 committed by GitHub
commit 767974f411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -855,6 +855,7 @@ json Store::pathInfoToJSON(const StorePathSet & storePaths,
auto info = queryPathInfo(storePath); auto info = queryPathInfo(storePath);
jsonPath["path"] = printStorePath(info->path); jsonPath["path"] = printStorePath(info->path);
jsonPath["valid"] = true;
jsonPath["narHash"] = info->narHash.to_string(hashBase, true); jsonPath["narHash"] = info->narHash.to_string(hashBase, true);
jsonPath["narSize"] = info->narSize; jsonPath["narSize"] = info->narSize;