Fix assertion failure

This commit is contained in:
Eelco Dolstra 2019-04-19 10:58:08 +02:00
parent 160b974fb0
commit 6e4210d8ce

View file

@ -415,7 +415,7 @@ void callFlake(EvalState & state, const Dependencies & flake, Value & v)
// Construct the resulting attrset '{description, provides, // Construct the resulting attrset '{description, provides,
// ...}'. This attrset is passed lazily as an argument to 'provides'. // ...}'. This attrset is passed lazily as an argument to 'provides'.
state.mkAttrs(v, flake.flakeDeps.size() + flake.nonFlakeDeps.size() + 4); state.mkAttrs(v, flake.flakeDeps.size() + flake.nonFlakeDeps.size() + 8);
for (auto & dep : flake.flakeDeps) { for (auto & dep : flake.flakeDeps) {
auto vFlake = state.allocAttr(v, dep.flake.id); auto vFlake = state.allocAttr(v, dep.flake.id);