summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2019-11-08 16:33:08 +0000
committerChandan Singh <csingh43@bloomberg.net>2019-11-08 16:33:08 +0000
commit02d73480d9b1e99c776393d7c3a1ef733148046b (patch)
tree73d48624fbd38448642d3fd55329da984906589a
parenta6c9c52a578e953bc4af64e300ca24cbde8eea4e (diff)
downloadbuildstream-chandan/stack-no-sources.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.
-rw-r--r--src/buildstream/plugins/elements/stack.py3
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