aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-12 09:42:22 +0200
committerGitHub <noreply@github.com>2019-06-12 09:42:22 +0200
commit506b6263efbd310837daf97b8b54e181fa4c95b6 (patch)
tree9d410a09444234f80de3decf516e639db2be1be9 /src/libexpr
parentc4d740115e391335361eaf9706b75f303a4b8002 (diff)
parente2d75696857af36232f189f2bee4fccec9b6076f (diff)
Merge pull request #2939 from NixOS/github-test
Add tests for GitHub flakes
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/flake/flake.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc
index 0018a0d07..8aa989620 100644
--- a/src/libexpr/flake/flake.cc
+++ b/src/libexpr/flake/flake.cc
@@ -44,7 +44,7 @@ std::shared_ptr<FlakeRegistry> readRegistry(const Path & path)
void writeRegistry(const FlakeRegistry & registry, const Path & path)
{
nlohmann::json json;
- json["version"] = 2;
+ json["version"] = 1;
for (auto elem : registry.entries)
json["flakes"][elem.first.to_string()] = { {"uri", elem.second.to_string()} };
createDirs(dirOf(path));