summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index f28f482ba..64686bf51 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -3111,7 +3111,8 @@ class Element(Plugin):
if self.__strict_cache_key is None:
dependencies = [
- e.__strict_cache_key for e in self.dependencies(Scope.BUILD)
+ [e.name, e.__strict_cache_key] if e.__strict_cache_key is not None else None
+ for e in self.dependencies(Scope.BUILD)
]
self.__strict_cache_key = self._calculate_cache_key(dependencies)