Skip to content

libstore/registerOutputs: Don't try to optimize a non-existent actual…#14276

Merged
Ericson2314 merged 1 commit intomasterfrom
fix-14193
Oct 16, 2025
Merged

libstore/registerOutputs: Don't try to optimize a non-existent actual…#14276
Ericson2314 merged 1 commit intomasterfrom
fix-14193

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Oct 16, 2025

…Path

Motivation

Since 3c610df this resulted in getting status of errors on paths inside the chroot if a path was already valid. Careful inspection of the logic shows that if buildMode != bmCheck actualPath gets reassigned to store.toRealPath(finalDestPath). The only branch that cares about actualPath is the buildMode == bmCheck case, which doesn't lead to optimisePath anyway.

Context

Fixes #14193
Reproduced @trofi's example and this patch resolves the issue.


Add 👍 to pull requests you find important.

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

…Path

Since 3c610df this resulted in `getting status of`
errors on paths inside the chroot if a path was already valid. Careful inspection
of the logic shows that if buildMode != bmCheck actualPath gets reassigned to
store.toRealPath(finalDestPath). The only branch that cares about actualPath is
the buildMode == bmCheck case, which doesn't lead to optimisePath anyway.
@xokdvium xokdvium requested a review from Ericson2314 as a code owner October 16, 2025 20:16
@xokdvium xokdvium added the backport 2.32-maintenance Automatically creates a PR against the branch label Oct 16, 2025
@Ericson2314 Ericson2314 enabled auto-merge October 16, 2025 20:51
@Ericson2314 Ericson2314 added this pull request to the merge queue Oct 16, 2025
Merged via the queue into master with commit 27767a6 Oct 16, 2025
22 checks passed
@Ericson2314 Ericson2314 deleted the fix-14193 branch October 16, 2025 21:45
@internal-nix-ci
Copy link

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.32 regression: ca-derivations fail to build stdenv packages

2 participants