-
-
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
Building a flake by another uid fails with unclear error message #6636
Comments
Nix could automatically set |
Wasn't #6440 supposed to solve this? |
Yes it was and it solved the issues back then. @edolstra on which Nix version does this happen? Can take a look at sunday, but currently I'm on vacation. |
The problem seems to be that #4638 was merged without properly resolving the conflicts in |
Uh, I just opened this and I wonder if it's related. I'm using TLDR; |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/remote-building-with-flakes/19656/2 |
@ncfavier do you mind filing a patch? otherwise I'll do it on Sunday :) |
Opened #6643 |
Also I'd like to mention here that a workaround for the original issue is to use |
Describe the bug
When I run
nixos-rebuild
, I use a flake in my home directory, i.e. the flake's Git repo is not owned by root. This has started failing with this error message:This is because of the new security checks in Git 2.35.2 (which make no sense, BTW). A workaround is to set
safe.directory
in~/.gitconfig
.Expected behavior
Ideally this should just work. Alternatively, it should print a better error message.
The text was updated successfully, but these errors were encountered: