mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Add a warning against carelessly changing the profile version number
Try and prevent the situation of https://github.com/NixOS/nix/issues/10109 to happen again in the future
This commit is contained in:
parent
e164b39ee9
commit
7161ef14a2
1 changed files with 2 additions and 0 deletions
|
@ -222,6 +222,8 @@ struct ProfileManifest
|
||||||
es[name] = obj;
|
es[name] = obj;
|
||||||
}
|
}
|
||||||
nlohmann::json json;
|
nlohmann::json json;
|
||||||
|
// Only upgrade with great care as changing it can break fresh installs
|
||||||
|
// like in https://github.com/NixOS/nix/issues/10109
|
||||||
json["version"] = 3;
|
json["version"] = 3;
|
||||||
json["elements"] = es;
|
json["elements"] = es;
|
||||||
return json;
|
return json;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue