Merge pull request #11700 from alyssais/2.18-exportReferencesGraph

[2.18] Fix exportReferencesGraph when given store subpath
This commit is contained in:
Eelco Dolstra 2024-10-16 17:23:51 +02:00 committed by GitHub
commit a1bfc99b0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,7 +151,7 @@ std::optional<nlohmann::json> ParsedDerivation::prepareStructuredAttrs(Store & s
for (auto i = e->begin(); i != e->end(); ++i) {
StorePathSet storePaths;
for (auto & p : *i)
storePaths.insert(store.parseStorePath(p.get<std::string>()));
storePaths.insert(store.toStorePath(p.get<std::string>()).first);
json[i.key()] = store.pathInfoToJSON(
store.exportReferences(storePaths, inputPaths), false, true);
}