diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/element.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 7d1274867..626ec17cd 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -2215,6 +2215,13 @@ class Element(Plugin): } def __get_source_entry(_source): + if _source.get_kind() == 'workspace': + if not _source._key: + if _source.BST_REQUIRES_PREVIOUS_SOURCES_STAGE: + _source._generate_key(self.__sources[:ix]) + else: + _source._generate_key([]) + return {'key': _source._get_unique_key(True), 'name': _source._get_source_name()} |