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
buildEnv fails when merging a directory with a broken symlink #82685
Comments
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
seems to still occur, so not stale |
I now believe this behavior is to be expected. See the reasons that convinced me: #134215 (comment) |
I agree that broken symlinks should not be silently removed when they need to be merged with another package's fs node. As said, the messages have improved, so I don't think anything actionable is left. |
Describe the bug
buildEnv fails with a misleading error message when a broken symlink conflicts with a directory.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The broken symlink should be ignored, or a nice explanatory error message should be printed. Notably, it should not be said that the broken symlink has 000 permissions, which is impossible in the store I think.
Additional context
clementineUnfree contains a broken symlink: (will open a PR to fix shortly)
Metadata
"x86_64-linux"
Linux 5.5.8, NixOS, 20.03beta570.730453919bd (Markhor)
yes
yes
nix-env (Nix) 2.3.2
"nixos-20.03beta570.730453919bd, nixos-hardware, nixos-unstable-20.09pre216896.0729b8c55e0"
"home-manager-19.09"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: