summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2019-11-08 18:26:01 +0000
committerChandan Singh <csingh43@bloomberg.net>2019-11-08 18:26:01 +0000
commit713767363d2e5fd25404e86cb3a5f8e033676c97 (patch)
tree01c9af1d8126a8f59249e00b5255c0d4fa680b78
parentb20ea08f3b3d987b077f53b7a90f29b6011c5d9a (diff)
downloadbuildstream-chandan/no-command-general-elements.tar.gz
Indicate that compose & stack plugins do not run commandschandan/no-command-general-elements
Both compose and stack elements do not run commands in the build sandbox. Indicate so by setting the `BST_RUN_COMMANDS` attribute accordingly.
-rw-r--r--src/buildstream/plugins/elements/compose.py3
-rw-r--r--src/buildstream/plugins/elements/stack.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/buildstream/plugins/elements/compose.py b/src/buildstream/plugins/elements/compose.py
index 1c523eeb2..511925731 100644
--- a/src/buildstream/plugins/elements/compose.py
+++ b/src/buildstream/plugins/elements/compose.py
@@ -58,6 +58,9 @@ class ComposeElement(Element):
# This plugin has been modified to avoid the use of Sandbox.get_directory
BST_VIRTUAL_DIRECTORY = True
+ # Compose elements do not run any commands
+ BST_RUN_COMMANDS = False
+
def configure(self, node):
node.validate_keys([
'integrate', 'include', 'exclude', 'include-orphans'
diff --git a/src/buildstream/plugins/elements/stack.py b/src/buildstream/plugins/elements/stack.py
index 267ac02ce..ae15af63a 100644
--- a/src/buildstream/plugins/elements/stack.py
+++ b/src/buildstream/plugins/elements/stack.py
@@ -39,6 +39,9 @@ class StackElement(Element):
# This element does not allow sources
BST_FORBID_SOURCES = True
+ # Stack elements do not run any commands
+ BST_RUN_COMMANDS = False
+
def configure(self, node):
pass