mirror of
https://github.com/NixOS/nix.git
synced 2025-02-18 01:43:17 +00:00
Merge pull request #10849 from NixOS/backport-10549-to-2.19-maintenance
[Backport 2.19-maintenance] Fix exportReferencesGraph when given store subpath
This commit is contained in:
commit
0cd7527998
@ -186,7 +186,7 @@ std::optional<nlohmann::json> ParsedDerivation::prepareStructuredAttrs(Store & s
|
|||||||
for (auto i = e->begin(); i != e->end(); ++i) {
|
for (auto i = e->begin(); i != e->end(); ++i) {
|
||||||
StorePathSet storePaths;
|
StorePathSet storePaths;
|
||||||
for (auto & p : *i)
|
for (auto & p : *i)
|
||||||
storePaths.insert(store.parseStorePath(p.get<std::string>()));
|
storePaths.insert(store.toStorePath(p.get<std::string>()).first);
|
||||||
json[i.key()] = pathInfoToJSON(store,
|
json[i.key()] = pathInfoToJSON(store,
|
||||||
store.exportReferences(storePaths, inputPaths));
|
store.exportReferences(storePaths, inputPaths));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user