mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Merge 48ec9e7ca0 into 479b6b73a9
This commit is contained in:
commit
64bd12ae51
1 changed files with 7 additions and 2 deletions
|
|
@ -90,8 +90,13 @@ struct SimpleUserLock : UserLock
|
|||
debug("trying user '%s'", i);
|
||||
|
||||
struct passwd * pw = getpwnam(i.c_str());
|
||||
if (!pw)
|
||||
throw Error("the user '%s' in the group '%s' does not exist", i, settings.buildUsersGroup);
|
||||
if (!pw) {
|
||||
printError("error: the user '%s' in the group '%s' does not exist", i, settings.buildUsersGroup);
|
||||
#if __APPLE__
|
||||
printError("note: If you are using macOS 15.0 Sequoia or newer, you may need to run this script: https://github.com/NixOS/nix/blob/master/scripts/sequoia-nixbld-user-migration.sh");
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
|
||||
auto fnUserLock = fmt("%s/userpool/%s", settings.nixStateDir, pw->pw_uid);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue