Commit 14aa2590 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

plugins/elements/junction.py: Forbid dependencies

Move this logic into the junction element itself, instead
of special case erroring for this in the loader.
parent b5c59295
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -117,6 +117,10 @@ from buildstream._pipeline import PipelineError
class JunctionElement(Element):
    # pylint: disable=attribute-defined-outside-init

    # Junctions are not allowed any dependencies
    BST_FORBID_BDEPENDS = True
    BST_FORBID_RDEPENDS = True

    def configure(self, node):
        self.path = self.node_get_member(node, str, 'path', default='')
        self.options = self.node_get_member(node, Mapping, 'options', default={})