aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-08 18:20:35 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-08 18:28:01 +0200
commit455aa8d9ea55d3ea661b3c6f93e3ed5a43a82746 (patch)
treebfb7fb5cb3beb64a22020e7b4929e66bba3e7d6f /src
parentcb5ebc5c1120da8900ef074ed300685cc3177ae6 (diff)
Add newline at end of lockfile
Suggested by @grahamc.
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops/flake.cc2
1 files changed, 1 insertions, 1 deletions
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()