Don’t require ca-derivations when __contentAddressed = false

If we explicitely opt-out of it, there’s no need to require the
experimental feature
This commit is contained in:
regnat
2021-11-03 06:51:32 +01:00
parent 886ad0055f
commit 5b2aa61f1b
+2 -1
View File
@@ -985,8 +985,9 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * *
}
if (i->name == state.sContentAddressed) {
settings.requireExperimentalFeature(Xp::CaDerivations);
contentAddressed = state.forceBool(*i->value, pos);
if (contentAddressed)
settings.requireExperimentalFeature(Xp::CaDerivations);
}
/* The `args' attribute is special: it supplies the