1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

"newtype" BuildableReq

This makes for better types errors and allows us to give it methods.
This commit is contained in:
John Ericson 2021-04-05 09:24:42 -04:00
parent 4fe41c6db3
commit 9dfb97c987
8 changed files with 24 additions and 16 deletions

View file

@ -187,7 +187,7 @@ void Store::queryMissing(const std::vector<BuildableReq> & targets,
{
auto state(state_.lock());
if (!state->done.insert(to_string(*this, req)).second) return;
if (!state->done.insert(req.to_string(*this)).second) return;
}
std::visit(overloaded {
@ -250,7 +250,7 @@ void Store::queryMissing(const std::vector<BuildableReq> & targets,
for (auto & ref : info->second.references)
pool.enqueue(std::bind(doPath, BuildableOpaque { ref }));
},
}, req);
}, req.raw());
};
for (auto & path : targets)