-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
ln: failed to create symbolic link ... permission denied #327
Comments
What version of nix? What are the permissions on I am afraid that there's not much we can do to help without more information. We are aware that there's a change to nix 2.14 that will cause issue (moving the user gcroot dir to |
You're right, I should've provided some info. The generic nix-meta: $ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.2.9, NixOS, 23.05 (Stoat), 23.05.20230403.53dad94`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.14.1`
- nixpkgs: `/nix/store/5i6bi3yx11vjkm63vmkms3gs22nvi78r-source` I enable nix-direnv using programs.nix-direnv, so I believe the version is the same as the nixpkgs one: If there's anything else you'd like me to provide, please do let me know. |
What is the owner of |
this directory was not actually generated automatically - I made it myself with
I would be delighted to. But I use the nixos module for nix-direnv, guess that would take a nixpkgs fork where the module is updated to use that package? |
If the permissions are
There is s no need for using a nixpkgs fork. You can do something like this commit (but in reverse) if you use a system flake: bbenne10/nix@d40bb5c Or you can use the |
before having created the directory, it would fail because the directory is missing - which is equally undesirable imo |
Please excuse my terseness, but this is what happens with an unstable nix build - you get unstable behavior and encounter bugs. We haven't yet completely resolved the behavior in nix 2.14. The PR I am pointing you at attempts to resolve that behavior, but isn't completely ready for merge yet. If you have trouble with that PR, you can either try and resolve the issue itself (and thus contributing to the PR - even if indirectly) or you can roll back to a 2.13 version of nix. |
Completely understandable. I apologize if my responses have come out as fractious or accusive. I'll be happy to help resolve the issue as nix-direnv is invaluable to my workflow. |
I'm just glad to have another set of eyes on the problem. I've gotten exceedingly busy outside of work as of late (preparing for the birth of our second child) and have not had a lot of time to dedicate to outside projects. I am going to leave this open for the moment, as it is - in fact - a problem with our software. I just don't quite yet know how to resolve it meaningfully without the work in #311. We'll continue discussion there. |
Given that I just merged #311, I think we should see that this is resolved. If you continue to have trouble - please open a new issue. Thanks! |
I believe a (possibly not so) recent nix update might've changed the way nix handles gcroots, resulting in an error as such:
I'm not sure what exactly is wrong, a setup that used to work now throws this on each direnv init/reload/enter
The text was updated successfully, but these errors were encountered: