1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-10-18 00:16:11 -04:00
This commit is contained in:
tomberek 2024-10-16 12:18:52 -06:00 committed by GitHub
commit 10b6b75bc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,8 +74,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);