Repository navigation
fix(extract): remove dangling alias import edges - #1967
Closed
oleksii-tumanov wants to merge 1 commit into
Closed
oleksii-tumanov wants to merge 1 commit into
oleksii-tumanov wants to merge 1 commit into
Conversation
Member
|
Landed on v8 (ships in 0.9.18), cherry-picked so your authorship is preserved. Thanks @oleksii-tumanov — a JS/TS import resolving through a tsconfig alias or workspace package was emitting a duplicate import edge whose target was an absolute-path-prefixed id (a dangling endpoint). The fix drops that edge only when its exact canonical twin already exists and the target is the abs-form alias of exactly one owned node, so external/sourceless stubs and legitimate edges are untouched. Verified end to end: 0 dangling / 0 abs-path import targets, resolvable imports still produced. One follow-up worth a separate issue: re_exports (export ... from "@/x") has the same abs-path shape and needs target-rewriting rather than this twin-dedupe. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1961
Testing
uv run pytest tests/test_js_import_resolution.py tests/test_extract.py tests/test_import_extension_resolution.py tests/test_extraction_spec_ids.py -q(273 passed)uv run ruff check graphify/extract.py tests/test_js_import_resolution.pyuv run --frozen python -m tools.skillgen --checkgraphify update .