You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bash extractor: a call from one sourced library to another, both loaded by the same script, gets no edge #5564
In bash, everything one script loads lands in one shell: a library can call a function from another library the same script loaded, without loading it itself.
# bin/tool loads lib/a.sh and lib/b.sh# lib/a.sh: greet() { shout hello; } # shout is in lib/b.sh
Graphify resolves a call only against the caller's own file and the files that file loads, so greet -> shout is lost and shout looks unused.
Reproduced on graphifyy 0.9.122 (newest on PyPI), installed with pip, nothing patched, Python 3.12, Ubuntu.
For bash, resolve a call that has no match in the caller's own reach against the pool of files one entry script loads (its own loads, and theirs), when the caller is in that pool.
When more than one pool has a match, an edge per pool keeps it correct for each script.
Related: #2141 (calls into a sourced file, fixed for the direct case).
Activity
github-actions commentedon Nov 28, 2026
Thanks for opening this issue, @yashsaxena. 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.
fix(bash): resolve cross-library calls between sibling sourced scripts