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:
Théophane Hufschmitt 2024-03-06 06:43:36 +01:00 committed by GitHub
commit 67f95755d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;