[Notes] [Git][BuildStream/buildstream][doraskayo/filter-indirect-deps-fix] filter.py: don't recurse when staging dependencies



Title: GitLab

Dor Askayo pushed to branch doraskayo/filter-indirect-deps-fix at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/plugins/elements/filter.py
    ... ... @@ -47,6 +47,8 @@ from buildstream import Element, ElementError, Scope
    47 47
     class FilterElement(Element):
    
    48 48
         # pylint: disable=attribute-defined-outside-init
    
    49 49
     
    
    50
    +    BST_ARTIFACT_VERSION = 1
    
    51
    +
    
    50 52
         # The filter element's output is its dependencies, so
    
    51 53
         # we must rebuild if the dependencies change even when
    
    52 54
         # not in strict build plans.
    
    ... ... @@ -102,7 +104,7 @@ class FilterElement(Element):
    102 104
     
    
    103 105
         def assemble(self, sandbox):
    
    104 106
             with self.timed_activity("Staging artifact", silent_nested=True):
    
    105
    -            for dep in self.dependencies(Scope.BUILD):
    
    107
    +            for dep in self.dependencies(Scope.BUILD, recurse=False):
    
    106 108
                     dep.stage_artifact(sandbox, include=self.include,
    
    107 109
                                        exclude=self.exclude, orphans=self.include_orphans)
    
    108 110
             return ""
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]