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

[buildstream] 02/02: elements/stack.py: Disallow sources

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

root pushed a commit to branch chandan/stack-disallow-source
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 0be5d952c468841201111fc6e4ec7337eeea4efa
Author: Chandan Singh <cs...@bloomberg.net>
AuthorDate: Tue Apr 30 23:54:01 2019 +0100

    elements/stack.py: Disallow sources
    
    Stack elements merely represent a logical group of elements. For this
    reason, sources do not make sense.
---
 src/buildstream/plugins/elements/stack.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/buildstream/plugins/elements/stack.py b/src/buildstream/plugins/elements/stack.py
index 97517ca..6582338 100644
--- a/src/buildstream/plugins/elements/stack.py
+++ b/src/buildstream/plugins/elements/stack.py
@@ -33,6 +33,10 @@ class StackElement(Element):
     # This plugin has been modified to avoid the use of Sandbox.get_directory
     BST_VIRTUAL_DIRECTORY = True
 
+    # Stack elements merely represent a logical group of elements. For this
+    # reason, sources do not make sense.
+    BST_FORBID_SOURCES = True
+
     def configure(self, node):
         pass