Add newline at end of lockfile

Suggested by @grahamc.
This commit is contained in:
Eelco Dolstra 2019-05-08 18:20:35 +02:00
parent cb5ebc5c11
commit 455aa8d9ea
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ void writeLockFile(const LockFile & lockFile, const Path & path)
for (auto & x : lockFile.flakeEntries)
json["requires"][x.first.to_string()] = flakeEntryToJson(x.second);
createDirs(dirOf(path));
writeFile(path, json.dump(4)); // '4' = indentation in json file
writeFile(path, json.dump(4) + "\n"); // '4' = indentation in json file
}
std::shared_ptr<FlakeRegistry> getGlobalRegistry()