Skip to content

Comments

libutil/union-source-accessor: Barf on non-existent directories#14961

Merged
xokdvium merged 1 commit intomasterfrom
readdir-nonexistent-fix
Jan 11, 2026
Merged

libutil/union-source-accessor: Barf on non-existent directories#14961
xokdvium merged 1 commit intomasterfrom
readdir-nonexistent-fix

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Jan 9, 2026

Motivation

Previously builtins.readDir would return an empty attribute set instead of barfing on non-existent paths. This is a regression from 2.32 for impure eval.

Context


Add 👍 to pull requests you find important.

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

Previously builtins.readDir would return an empty attribute set
instead of barfing on non-existent paths. This is a regression from
2.32 for impure eval.
@xokdvium xokdvium requested a review from edolstra as a code owner January 9, 2026 17:22
@xokdvium xokdvium added backport 2.32-maintenance Automatically creates a PR against the branch backport 2.33-maintenance Automatically creates a PR against the branch labels Jan 9, 2026
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Jan 9, 2026
@xokdvium
Copy link
Contributor Author

xokdvium commented Jan 9, 2026

Might make sense to backport further since it was also broken with a relocated store (that's when the union accessor was used prior to 2.32).

@xokdvium xokdvium added this pull request to the merge queue Jan 11, 2026
Merged via the queue into master with commit 920c5ce Jan 11, 2026
20 checks passed
@xokdvium xokdvium deleted the readdir-nonexistent-fix branch January 11, 2026 19:02
@internal-nix-ci
Copy link

Successfully created backport PR for 2.32-maintenance:

@internal-nix-ci
Copy link

Successfully created backport PR for 2.33-maintenance:

JustAGuyTryingHisBest pushed a commit to JustAGuyTryingHisBest/nix that referenced this pull request Jan 12, 2026
libutil/union-source-accessor: Barf on non-existent directories
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 backport 2.33-maintenance Automatically creates a PR against the branch with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants