aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/realisation.hh
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-05-26 16:09:02 +0200
committerregnat <rg@regnat.ovh>2021-05-26 17:09:21 +0200
commit1f3ff0d193c270f7b97af4aa3e463be01dbe5f2d (patch)
tree61332b661ea6a2ceecb654c313d01ced22a0286d /src/libstore/realisation.hh
parentcb46d70794b8677b7927e6ae3d492e6db886c7aa (diff)
Aso track the output path of the realisation dependencies
Diffstat (limited to 'src/libstore/realisation.hh')
-rw-r--r--src/libstore/realisation.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libstore/realisation.hh b/src/libstore/realisation.hh
index 776ab606c..8cda5a752 100644
--- a/src/libstore/realisation.hh
+++ b/src/libstore/realisation.hh
@@ -28,7 +28,13 @@ struct Realisation {
StringSet signatures;
- std::set<DrvOutput> drvOutputDeps;
+ /**
+ * The realisations that are required for the current one to be valid.
+ *
+ * When importing this realisation, the store will first check that all its
+ * dependencies exist, and map to the correct output path
+ */
+ std::map<DrvOutput, StorePath> dependentRealisations;
nlohmann::json toJSON() const;
static Realisation fromJSON(const nlohmann::json& json, const std::string& whence);