Open qbit opened 1 year ago
I think this is by design, to help with reproducibility. I.e. not leaking host UIDs/GIDs into the build.
Huh, well the behavior seems to be new as it's causing breakage here: https://github.com/NixOS/nixpkgs/blame/nixos-23.05/nixos/modules/services/logging/logrotate.nix#L54-L55
It also seems the GIDs are different on different systems.
also, wouldn't it still be leaking the 3000X ids?
The problem isn't the UID, it's the GID. The build user is in group 30000, but the nixbld
group is GID 100.
Is this using automatic UID evaluation?
Nope
Breaks logrotate
on current Nixpkgs master
:
error: builder for '/nix/store/cszlszng8qwf7wbqihjcprywv7yfqgqn-logrotate.conf.drv' failed with exit code 1;
last 1 log lines:
> /nix/store/0kg70swgpg45ipcz3pr2siidq9fn6d77-coreutils-9.5/bin/id: cannot find name for group ID 30000
For full logs, run 'nix log /nix/store/cszlszng8qwf7wbqihjcprywv7yfqgqn-logrotate.conf.drv'.
Describe the bug
Nix 2.15.1 produces invalid
/etc/group
file in the chroot.Steps To Reproduce
nix-build
the above ^Outputs:
Expected behavior
/etc/group
should have:nix-env --version
outputPriorities
Add :+1: to issues you find important.