forked from lix-project/lix
Merge pull request #9588 from obsidiansystems/queryDerivationOutputMap-evalStore
Give `Store::queryDerivationOutputMap` and `evalStore` argument (cherry picked from commit8cddda4f89
) Change-Id:I394e7e11c3f2e0cd3dbe0f48d757c14c09835e44
This commit is contained in:
parent
fa03f23923
commit
bc34274aae
|
@ -539,8 +539,8 @@ std::map<std::string, std::optional<StorePath>> Store::queryPartialDerivationOut
|
||||||
return outputs;
|
return outputs;
|
||||||
}
|
}
|
||||||
|
|
||||||
OutputPathMap Store::queryDerivationOutputMap(const StorePath & path) {
|
OutputPathMap Store::queryDerivationOutputMap(const StorePath & path, Store * evalStore) {
|
||||||
auto resp = queryPartialDerivationOutputMap(path);
|
auto resp = queryPartialDerivationOutputMap(path, evalStore);
|
||||||
OutputPathMap result;
|
OutputPathMap result;
|
||||||
for (auto & [outName, optOutPath] : resp) {
|
for (auto & [outName, optOutPath] : resp) {
|
||||||
if (!optOutPath)
|
if (!optOutPath)
|
||||||
|
|
|
@ -457,7 +457,7 @@ public:
|
||||||
* Query the mapping outputName=>outputPath for the given derivation.
|
* Query the mapping outputName=>outputPath for the given derivation.
|
||||||
* Assume every output has a mapping and throw an exception otherwise.
|
* Assume every output has a mapping and throw an exception otherwise.
|
||||||
*/
|
*/
|
||||||
OutputPathMap queryDerivationOutputMap(const StorePath & path);
|
OutputPathMap queryDerivationOutputMap(const StorePath & path, Store * evalStore = nullptr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query the full store path given the hash part of a valid store
|
* Query the full store path given the hash part of a valid store
|
||||||
|
|
Loading…
Reference in a new issue