Skip to content

A co-extracted symlink alias can drop its real target from the graph #5615

Done

Description

@sdivyanshu90

A full extraction of a Python source and its in-root symlink can drop the real source's nodes and redirect its imports to the alias. Indexing the same tree incrementally leaves both sources in the graph.

Reproduction

On Graphify 0.9.123 with Python 3.14 on Linux, create b.py with def beta(): return 2 and app.py with from b import beta and a function that calls beta(). Run graphify update . --no-cluster. Add link.py -> b.py and repeat the full update.

The result can contain link and link_beta but omit b and b_beta. The import in app.py points at the alias even though it names b. Both sources should survive and the import should still point at b.py.

The file and symbol remapping pass shares resolved-path entries between the alias and its target. Keep ownership keyed to the walked path and give the real file precedence for resolved target hints when both paths are indexed. This differs from #2832, which concerned the keys used to store and read AST cache entries.

Activity

  1. github-actions commented on Nov 29, 2026

    @github-actions

    Thanks for opening this issue, @sdivyanshu90. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

  2. added a commit that references this issue on Nov 30, 2026
    fbc8a5d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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