mirror of
https://github.com/NixOS/nix.git
synced 2025-12-05 16:41:01 +01:00
Merge pull request #14674 from Mic92/ca-derivation
Fix crash when querying realisations without ca-derivations enabled
This commit is contained in:
commit
d7c29383c6
1 changed files with 4 additions and 0 deletions
|
|
@ -1629,6 +1629,10 @@ void LocalStore::queryRealisationUncached(
|
|||
const DrvOutput & id, Callback<std::shared_ptr<const UnkeyedRealisation>> callback) noexcept
|
||||
{
|
||||
try {
|
||||
if (!experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) {
|
||||
callback(nullptr);
|
||||
return;
|
||||
}
|
||||
auto maybeRealisation = retrySQLite<std::optional<const UnkeyedRealisation>>(
|
||||
[&]() { return queryRealisation_(*_state->lock(), id); });
|
||||
if (maybeRealisation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue