#551
fix(graph): include calls in extensionless Bash scripts
Fixes #545.
Two Bash files with identical contents produced the same function entities, but only the copy named .sh produced a call edge. The scope resolver now uses the existing shebang detector for extensionless Bash across retained-tree, chunked, direct-dependency, and incremental graph builds. The SQLite cache version and Bash corpus salt make existing graphs regenerate, including the binary query index.
Verification
- Reproduced the report with the original CLI. With the same repository and cache,
sem graph --jsonwent from one call edge to two after upgrading. A second run returned the same two edges via the binary index fast path. - Added a regression for retained-tree and chunked builds, direct dependencies, and both incremental build paths.
cargo +1.98.0 test --offline --locked --workspaceon Linux: 1,492 passed, 1 ignored. The test run used an LF checkout and isolated loopback so the existing localhost:1 test could run as designed.cargo test --locked -p sem-core --lib --example facts_corpus_probeandgit diff --checkpassed.
AI assistance was used to develop and verify the patch.
@codesmith-bot with what you need.
Activity
3inspect-review[bot]reviewed7d ago
inspect review
Triage: 15 entities analyzed | 0 critical, 0 high, 11 medium, 4 low Verdict: standard_review
Findings (0)
Reviewed by inspect | Entity-level triage found 0 high-risk changes
@jihtsan is attempting to deploy a commit to the rs545837's projects Team on Vercel.
A member of the Team first needs to authorize it.