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-10-26 16:55:57 +02:00
parent 886ad0055f
commit 5b2aa61f1b

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