Skip to content

Commit d7c2938

Browse files
authored
Merge pull request #14674 from Mic92/ca-derivation
Fix crash when querying realisations without ca-derivations enabled
2 parents 3a32039 + ee5860f commit d7c2938

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstore/local-store.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,6 +1629,10 @@ void LocalStore::queryRealisationUncached(
16291629
const DrvOutput & id, Callback<std::shared_ptr<const UnkeyedRealisation>> callback) noexcept
16301630
{
16311631
try {
1632+
if (!experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) {
1633+
callback(nullptr);
1634+
return;
1635+
}
16321636
auto maybeRealisation = retrySQLite<std::optional<const UnkeyedRealisation>>(
16331637
[&]() { return queryRealisation_(*_state->lock(), id); });
16341638
if (maybeRealisation)

0 commit comments

Comments
 (0)