diff options
Diffstat (limited to 'buildstream/element.py')
-rw-r--r-- | buildstream/element.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index e7c90de46..ffdead527 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -194,6 +194,9 @@ class Element(Plugin): def __init__(self, context, project, artifacts, meta, plugin_conf): + self.__cache_key_dict = None # Dict for cache key calculation + self.__cache_key = None # Our cached cache key + super().__init__(meta.name, context, project, meta.provenance, "element") self.__is_junction = meta.kind == "junction" @@ -212,8 +215,6 @@ class Element(Plugin): self.__runtime_dependencies = [] # Direct runtime dependency Elements self.__build_dependencies = [] # Direct build dependency Elements self.__sources = [] # List of Sources - self.__cache_key_dict = None # Dict for cache key calculation - self.__cache_key = None # Our cached cache key self.__weak_cache_key = None # Our cached weak cache key self.__strict_cache_key = None # Our cached cache key for strict builds self.__artifacts = artifacts # Artifact cache |