Skip to content

[bug][bender sources] Package with no source files is being dropped from dependency graph #288

@WRoenninger

Description

@WRoenninger

When warning[W04]: Source group in package contains no source files. is being thrown, the manifest is dropped from the dependency tree, regardless if it contains further dependencies.

Was using a Bender.yml to collect a bunch of dependencies together. The aggregate bender file does not contain any source files, but a bunch of dependecies.

Example_structure:

Bender(top) <--- Is showing up in resolved tree
    -> Bender(no_sources_but_has_dependencies) <--- This throws the warning 
         -> Bender(with_some_sources) <--- Not showing up in resolved tree!
         -> Bender(with_more_sources) <--- Not showing up in resolved tree!
    -> Bender(with_different_sources) <--- Is showing up in resolved tree

Seems to be connected with the yml validation or topological sorting. Command which the bug was observed is bender -d <path_to_top> sources -f. The command bender packages has them correctly listed. Seems they are also being dropped from bender script.

Setup:

  • All dependencies are inside the same repository and being linked via path.
  • A .bender.yml in the repositories root is used as a pseudo registry to specify the concrete paths and avoid duplications.

Bender version 0.31.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions