aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-22 14:31:40 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-22 14:31:40 +0200
commite414bde6f9f58e599d48307ff3cb0ab64cb47d9a (patch)
tree93387e851b19fd69ecfa182b7be916036b6bba1c /src/nix
parent3cecf3f39c5c580ed6d0c5f0bcbb09dcc53dfae4 (diff)
Check the flake epoch
Closes #2883.
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/flake.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index ecbb3b81f..2dcdfc663 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -83,6 +83,7 @@ void printFlakeInfo(const Flake & flake, bool json) {
if (flake.revCount)
j["revCount"] = *flake.revCount;
j["path"] = flake.storePath;
+ j["epoch"] = flake.epoch;
std::cout << j.dump(4) << std::endl;
} else {
std::cout << "ID: " << flake.id << "\n";
@@ -95,6 +96,7 @@ void printFlakeInfo(const Flake & flake, bool json) {
if (flake.revCount)
std::cout << "Revcount: " << *flake.revCount << "\n";
std::cout << "Path: " << flake.storePath << "\n";
+ std::cout << "Epoch: " << flake.epoch << "\n";
}
}