diff options
author | regnat <rg@regnat.ovh> | 2021-10-26 16:55:57 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-11-03 06:51:32 +0100 |
commit | 5b2aa61f1b8fe253c963874ccb4700f6ff99526e (patch) | |
tree | 9866c880ea993b9d6f36b5d1ab47ccb23f8eea78 /src | |
parent | 886ad0055f20ca70247b1290759903f244c27f88 (diff) |
Don’t require `ca-derivations` when `__contentAddressed = false`
If we explicitely opt-out of it, there’s no need to require the
experimental feature
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/primops.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 6b3cafec8..f05cca169 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -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 |