-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Warn when building without nix daemon #7374
Conversation
We need root permission to drop supplementary groups, and if we don't do that, some builds can fail in user namespace, most notably go. Related: NixOS#3245
@yshui We discussed your PR in the Nix team meeting and did not come to a conclusion how to proceed. We probably don't want to flood users with warnings they can't do anything about, but we still have to review the full scope of the design considerations your PR reveals. Complete discussionTriaged in the Nix team meeting:
Discussed in the Nix team meeting:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-03-10-nix-team-meeting-minutes-39/26279/1 |
what about only print this warning if the build fails? |
Or, add a way to detect non-daemon builds from nix scripts (is there already a way?), and print a warning from go nix script? |
Yes, that sounds sensible since as far as I can tell, this essentially concerns |
Triaged in Nix team meeting:
@yshui feel free to open a new PR if needed |
We need root permission to drop supplementary groups, and if we don't do that, some builds can fail in user namespace, most notably go.
Related: #3245