Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!437Uniform junction errors
......@@ -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={})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment