diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-11-08 16:33:08 +0000 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2019-11-08 16:33:08 +0000 |
commit | 02d73480d9b1e99c776393d7c3a1ef733148046b (patch) | |
tree | 73d48624fbd38448642d3fd55329da984906589a /src/buildstream/plugins | |
parent | a6c9c52a578e953bc4af64e300ca24cbde8eea4e (diff) | |
download | buildstream-02d73480d9b1e99c776393d7c3a1ef733148046b.tar.gz |
plugins/elements/stack: Disallow sourceschandan/stack-no-sources
Stack elements represent a logical grouping of dependencies. As such,
sources for stack elements do not make any sense. So, explicitly
disallow them to prevent any confusion.
Diffstat (limited to 'src/buildstream/plugins')
-rw-r--r-- | src/buildstream/plugins/elements/stack.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/plugins/elements/stack.py b/src/buildstream/plugins/elements/stack.py index dbb59a43d..267ac02ce 100644 --- a/src/buildstream/plugins/elements/stack.py +++ b/src/buildstream/plugins/elements/stack.py @@ -36,6 +36,9 @@ class StackElement(Element): # This plugin does not produce any artifacts when built BST_ELEMENT_HAS_ARTIFACT = False + # This element does not allow sources + BST_FORBID_SOURCES = True + def configure(self, node): pass |