Add newline at end of lockfile

Suggested by @grahamc.
This commit is contained in:
Eelco Dolstra
2019-05-08 18:28:01 +02:00
parent cb5ebc5c11
commit 455aa8d9ea
2 changed files with 2 additions and 2 deletions
Generated
+1 -1
View File
@@ -6,4 +6,4 @@
}
},
"version": 1
}
}
+1 -1
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()