-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properly report build errors on chrooted stores #8399
Conversation
When encountering a build error, Nix moves the output paths out of the chroot into their final location (for “easier debugging of build failures”). However this was broken for chroot stores as it was moving it to the _logical_ location, not the _physical_ one. Fix it by moving to the physical (_real_) location. Fix NixOS#8395
Everything looks good....except we need a test :) |
Indeed. I left out the test because
|
Actually is this right? Shouldn't it be the fake store dir inside the choot, but the real store dir outside the chroot? |
Well, for the copy it definitely should be the real store dir that we want |
Right but the source dir I think should continue to be the source dir. |
Successfully created backport PR for |
Backport failed for Please cherry-pick the changes locally. git fetch origin 2.13-maintenance
git worktree add -d .worktree/backport-8399-to-2.13-maintenance origin/2.13-maintenance
cd .worktree/backport-8399-to-2.13-maintenance
git checkout -b backport-8399-to-2.13-maintenance
ancref=$(git merge-base f41dd2c306a5986340b04c1635bd674e4a01b78d d16a1994fb6048d4ea48090c5aabafb7ad89c84f)
git cherry-pick -x $ancref..d16a1994fb6048d4ea48090c5aabafb7ad89c84f |
Successfully created backport PR for |
Motivation
When encountering a build error, Nix moves the output paths out of the chroot into their final location (for “easier debugging of build failures”). However this was broken for chroot stores as it was moving it to the logical location, not the physical one.
Fix it by moving to the physical (real) location.
Context
Fix #8395
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*
Priorities
Add 👍 to pull requests you find important.