diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-05-08 18:20:35 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-05-08 18:28:01 +0200 |
commit | 455aa8d9ea55d3ea661b3c6f93e3ed5a43a82746 (patch) | |
tree | bfb7fb5cb3beb64a22020e7b4929e66bba3e7d6f | |
parent | cb5ebc5c1120da8900ef074ed300685cc3177ae6 (diff) |
Add newline at end of lockfile
Suggested by @grahamc.
-rw-r--r-- | flake.lock | 2 | ||||
-rw-r--r-- | src/libexpr/primops/flake.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/flake.lock b/flake.lock index 9848cb996..0a5f76db7 100644 --- a/flake.lock +++ b/flake.lock @@ -6,4 +6,4 @@ } }, "version": 1 -}
\ No newline at end of file +} diff --git a/src/libexpr/primops/flake.cc b/src/libexpr/primops/flake.cc index 5e732b362..1d409105f 100644 --- a/src/libexpr/primops/flake.cc +++ b/src/libexpr/primops/flake.cc @@ -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() |