aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/flake')
-rw-r--r--src/libexpr/flake/flake.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc
index d96c3c413..80726a257 100644
--- a/src/libexpr/flake/flake.cc
+++ b/src/libexpr/flake/flake.cc
@@ -686,7 +686,11 @@ Fingerprint ResolvedFlake::getFingerprint() const
// and we haven't changed it, then it's sufficient to use
// flake.sourceInfo.storePath for the fingerprint.
return hashString(htSHA256,
- fmt("%s;%s", flake.sourceInfo.storePath, lockFile));
+ fmt("%s;%d;%d;%s",
+ flake.sourceInfo.storePath,
+ flake.sourceInfo.revCount.value_or(0),
+ flake.sourceInfo.lastModified.value_or(0),
+ lockFile));
}
}