You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:24:17 UTC

[buildstream] 02/14: elements/stack.py: Indicate that it does not run sandbox commands

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch chandan/stack-stricter-warnings
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 837017a71287ad9352e77c9b228851bb1ddbebe6
Author: Chandan Singh <cs...@bloomberg.net>
AuthorDate: Tue Jul 16 12:19:11 2019 +0100

    elements/stack.py: Indicate that it does not run sandbox commands
    
    Since the `stack` element does not run any commands inside the sandbox,
    indicate so in its class definition.
---
 src/buildstream/plugins/elements/stack.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/buildstream/plugins/elements/stack.py b/src/buildstream/plugins/elements/stack.py
index 4cacd3f..62aefa8 100644
--- a/src/buildstream/plugins/elements/stack.py
+++ b/src/buildstream/plugins/elements/stack.py
@@ -36,6 +36,9 @@ class StackElement(Element):
     # This plugin ignores sources, so disallow them
     BST_FORBID_SOURCES = True
 
+    # This plugin does not run any commands using Sandbox.run()
+    BST_RUN_COMMANDS = False
+
     # This plugin has been modified to avoid the use of Sandbox.get_directory
     BST_VIRTUAL_DIRECTORY = True