1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

feat: turn fatal error of missing user into warning

fix: Update src/libstore/unix/user-lock.cc

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>

fix: remove single-quotes
This commit is contained in:
Tom Bereknyei 2024-08-29 06:00:06 -04:00
parent b89eca9aec
commit 48ec9e7ca0

View file

@ -74,8 +74,13 @@ struct SimpleUserLock : UserLock
debug("trying user '%s'", i); debug("trying user '%s'", i);
struct passwd * pw = getpwnam(i.c_str()); struct passwd * pw = getpwnam(i.c_str());
if (!pw) if (!pw) {
throw Error("the user '%s' in the group '%s' does not exist", i, settings.buildUsersGroup); 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); auto fnUserLock = fmt("%s/userpool/%s", settings.nixStateDir,pw->pw_uid);