Skip to content

Dependencies of explicitly imported interfaces are not merged with implicitly imported interfaces #100

@rylev

Description

@rylev

If I have an explicit import node that is itself importing some dependent package foo and then I am also implicitly importing foo due to some usage elsewhere, the graph encoding will not aggregate and merge those two usages leading to the implicitly imported version always being used. If there are some pieces of the interface in the version from the explicit import that are not present in the implicitly imported version, then encoding will be wrong.

This is because import nodes use the type collection on the CompositionGraph which has not had its interfaces aggregated:

self.import(&mut state, name, &self.0.types, node.item_kind)

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