diff options
author | Jürg Billeter <j@bitron.ch> | 2020-04-13 14:05:25 +0200 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-04-16 16:48:49 +0000 |
commit | d36340dbb2949e15484db9e8cd345c118a0b2b24 (patch) | |
tree | d4434f7385563e60d9d1892ba38943a2cc01c6f8 | |
parent | 2d66d5b40886a675629ff7c40da7ea50e3340e96 (diff) | |
download | buildstream-d36340dbb2949e15484db9e8cd345c118a0b2b24.tar.gz |
element.py: Tweak cache key calculation for `BST_STRICT_REBUILD`
Include the project name and element name of dependencies in all cache
key variants as the dependency names are stored in the artifact proto.
-rw-r--r-- | src/buildstream/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index d789e9541..a7ee40051 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -3013,7 +3013,7 @@ class Element(Plugin): # encode the dependency's weak cache key instead of it's name. # dependencies = [ - e._get_cache_key(strength=_KeyStrength.WEAK) + [e.project_name, e.name, e._get_cache_key(strength=_KeyStrength.WEAK)] if self.BST_STRICT_REBUILD or e in self.__strict_dependencies else [e.project_name, e.name] for e in self.dependencies(Scope.BUILD) |