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:08:43 UTC
[buildstream] 01/02: elements/stack.py: Disallow sources
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch chandan/stack-disallow-sources
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 688fffd6a3c50cf1c5cd00a80bf395eaf73dc947
Author: Chandan Singh <ch...@chandansingh.net>
AuthorDate: Sun Jul 14 15:42:39 2019 +0100
elements/stack.py: Disallow sources
Since stack element ignores sources, explicitly raise a warning when
sources are supplied to avoid potential confusion.
---
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 97517ca..6b97e44 100644
--- a/src/buildstream/plugins/elements/stack.py
+++ b/src/buildstream/plugins/elements/stack.py
@@ -33,6 +33,9 @@ class StackElement(Element):
# This plugin has been modified to avoid the use of Sandbox.get_directory
BST_VIRTUAL_DIRECTORY = True
+ # This element ignores sources
+ BST_FORBID_SOURCES = True
+
def configure(self, node):
pass