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 source resolution: extensionless shebang scripts and bare source lib.sh are not resolved #2171
Follow-up to #2141 / #2157 (which resolves calls into sourced-file functions). Two coverage gaps remain, both verified during review of #2157. Neither is a regression; each is a miss, not a fabrication.
Extensionless shebang scripts._SHEBANG_DISPATCH routes #!/usr/bin/env bash extensionless files to extract_bash, but the source-resolution filter selects bash results by suffix (p.suffix in (".sh", ".bash")). A sourced extensionless lib gets its functions indexed but calls into it never resolve.
Fix direction: select bash results by shape (a node whose metadata.language == "bash") instead of by suffix.
Test: extensionless mylib with a bash shebang, sourced by a.sh; assert the calls edge into mylib's function.
Bare source lib.sh (no ./ prefix). Only the raw.startswith((".", "/")) branch records bash_sources; a bare name falls through to the imports fallback and never resolves, even though the file usually sits next to the script.
Fix direction: in the else branch, if (path.parent / raw).is_file(), also append a bash_sources entry. Low priority (bash resolves bare names via $PATH at runtime).
Transitive sources (a→b→c, a calls c's function) are intentionally left unresolved (conservative).
Activity
fix: resolve bash sources for extensionless libs and bare names (#2171)
fix: review follow-ups for the bash/SQL contributor PRs (#2171/#2172/#…
safishamsi commentedon Jul 26, 2026
Fixed in v0.9.27 (#2192, thanks @Souptik96). Extensionless shebang bash scripts and bare 'source lib.sh' now resolve; the bare-name binding is marked INFERRED. https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.27
Squashed commit of the following:
fix: resolve bash sources for extensionless libs and bare names (Grap…
fix: review follow-ups for the bash/SQL contributor PRs (Graphify-Lab…