Skip to content

Conversation

@Mic92
Copy link
Member

@Mic92 Mic92 commented Nov 30, 2025

queryRealisationUncached was crashing with an assertion failure when ca-derivations experimental feature is not enabled, because the SQLite statements for realisations are only initialized when ca-derivations is enabled.

Return nullptr (no realisation found) when ca-derivations is disabled, matching the behavior of other CA-related functions like registerDrvOutput which check for the feature before proceeding.

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

queryRealisationUncached was crashing with an assertion failure when
ca-derivations experimental feature is not enabled, because the SQLite
statements for realisations are only initialized when ca-derivations
is enabled.

Return nullptr (no realisation found) when ca-derivations is disabled,
matching the behavior of other CA-related functions like registerDrvOutput
which check for the feature before proceeding.
@Mic92 Mic92 requested a review from Ericson2314 as a code owner November 30, 2025 13:25
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Nov 30, 2025
Copy link
Contributor

@xokdvium xokdvium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@Ericson2314 Ericson2314 added this pull request to the merge queue Nov 30, 2025
@Ericson2314
Copy link
Member

Yeah I think I had this on some other branch of mine. This is good.

Merged via the queue into NixOS:master with commit d7c2938 Nov 30, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants