mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 00:56:15 +02:00
Merge pull request #10155 from NixOS/warn-against-changing-profile-version-number
Add a warning against carelessly changing the profile version number
This commit is contained in:
commit
67f95755d6
1 changed files with 2 additions and 0 deletions
|
@ -222,6 +222,8 @@ struct ProfileManifest
|
|||
es[name] = obj;
|
||||
}
|
||||
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["elements"] = es;
|
||||
return json;
|
||||
|
|
Loading…
Reference in a new issue