Skip to content

Conversation

@Ericson2314
Copy link
Member

Motivation

I didn't do things quite right in 496e43e:

  • Forgot to remove the now-redundant isAllowed check.

  • Called the non-virtual, not the superclass's impl, in addDependencyPrep, causing bad recursion / UB.

Doing this fixes a crash I encountered with manual testing an Nix Ninja --- hopefully we will get Nix Ninja or similar in a NixOS test longer term to defend against this thing happening again.

Context

496e43e


Add 👍 to pull requests you find important.

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

I didn't do things quite right in 496e43e:

- Forgot to remove the now-redundant `isAllowed` check.

- Called the non-virtual, not the superclass's impl, in
  `addDependencyPrep`, causing bad recursion / UB.

Doing this fixes a crash I encountered with manual testing an Nix Ninja
--- hopefully we will get Nix Ninja or similar in a NixOS test longer
term to defend against this thing happening again.
@Ericson2314 Ericson2314 requested a review from xokdvium December 7, 2025 16:35
@xokdvium xokdvium added the backport 2.32-maintenance Automatically creates a PR against the branch label Dec 7, 2025
@Ericson2314 Ericson2314 enabled auto-merge December 7, 2025 17:13
@Ericson2314 Ericson2314 added this pull request to the merge queue Dec 7, 2025
Merged via the queue into master with commit d8ad000 Dec 7, 2025
21 checks passed
@Ericson2314 Ericson2314 deleted the fix-add-dep branch December 7, 2025 18:11
@internal-nix-ci
Copy link

Successfully created backport PR for 2.32-maintenance:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.32-maintenance Automatically creates a PR against the branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants