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
graph.json stores absolute source_file paths, breaking portability across git worktrees and machines #555
graph.json stores source_file as absolute paths (e.g. /Users/alice/projects/myapp/src/lib/auth.ts). This makes the committed graph non-portable:
Git worktrees: building the graph in one worktree produces paths that don't resolve in sibling worktrees (same repo, different directory)
Teammates: cloning the repo gives a graph with paths pointing to the original author's machine
CI/CD: any pipeline that queries the graph gets paths from wherever it was last built
The graph is designed to be committed alongside the code. Absolute paths defeat that entirely.
Expected behavior
source_file should be stored relative to the project root (e.g. src/lib/auth.ts). Tools consuming the graph can resolve to absolute by joining with their own CWD, which is the standard convention for committed path references.
Workaround
We're post-processing graph.json in the post-commit and post-checkout hooks to strip the build-time CWD prefix:
Fixed: extract() now relativizes source_file fields in all nodes and edges to the computed root before returning. This ensures paths are portable across machines for both full and incremental builds.
Activity
fix Graphify-Labs#555: relativize source_file paths in extract() outp…
safishamsi commentedon Apr 27, 2026
Fixed:
extract()now relativizessource_filefields in all nodes and edges to the computedrootbefore returning. This ensures paths are portable across machines for both full and incremental builds.Fix 6 bugs: ID collisions, path portability, alias resolution, HTML c…
fix(extract): drop internal origin_file so it stops leaking into grap…
fix(detect,cli): excluded files are pruned from graph and manifest, n…
Squashed commit of the following:
fix(extract): drop internal origin_file so it stops leaking into grap…
fix(detect,cli): excluded files are pruned from graph and manifest, n…
Fix 6 bugs: ID collisions, path portability, alias resolution, HTML c…