forked from lix-project/nix-eval-jobs
Skip non-serialisable *Value in output
Most notably this includes derivations which should be fixed and serialised to store paths.
This commit is contained in:
parent
be59cd8bfb
commit
4c28ae88a6
|
@ -180,7 +180,15 @@ static void worker(
|
||||||
for (auto & name : drv->queryMetaNames()) {
|
for (auto & name : drv->queryMetaNames()) {
|
||||||
PathSet context;
|
PathSet context;
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
printValueAsJSON(state, true, *drv->queryMeta(name), ss, context);
|
|
||||||
|
auto metaValue = drv->queryMeta(name);
|
||||||
|
// Skip non-serialisable types
|
||||||
|
// TODO: Fix serialisation of derivations to store paths
|
||||||
|
if (metaValue == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
printValueAsJSON(state, true, *metaValue, ss, context);
|
||||||
nlohmann::json field = nlohmann::json::parse(ss.str());
|
nlohmann::json field = nlohmann::json::parse(ss.str());
|
||||||
meta[name] = field;
|
meta[name] = field;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue