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:25 UTC

[buildstream] 01/02: elements/import.py: Disallow build dependencies

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 d84d9892a9d2f6b42e79d058e2e71fa8dc6cd005
Author: Chandan Singh <cs...@bloomberg.net>
AuthorDate: Tue Apr 30 23:46:26 2019 +0100

    elements/import.py: Disallow build dependencies
    
    `import` elements imports files directly from its sources. As such, build
    dependencies do no make sense.
---
 src/buildstream/plugins/elements/import.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/buildstream/plugins/elements/import.py b/src/buildstream/plugins/elements/import.py
index 6ae8cef..41945f2 100644
--- a/src/buildstream/plugins/elements/import.py
+++ b/src/buildstream/plugins/elements/import.py
@@ -38,6 +38,10 @@ from buildstream import Element, ElementError
 class ImportElement(Element):
     # pylint: disable=attribute-defined-outside-init
 
+    # Import elements imports files directly from its sources. As such, build
+    # dependencies do no make sense.
+    BST_FORBID_BDEPENDS = True
+
     # This plugin has been modified to avoid the use of Sandbox.get_directory
     BST_VIRTUAL_DIRECTORY = True