Skip to content

rf: use single, shared importer for each Snapshot#52

Merged
rsc merged 1 commit intorsc:mainfrom
jitsu-net:fix-importer
Jan 29, 2026
Merged

rf: use single, shared importer for each Snapshot#52
rsc merged 1 commit intorsc:mainfrom
jitsu-net:fix-importer

Conversation

@jitsu-net
Copy link
Copy Markdown
Collaborator

The rf tool was failing with spurious type errors when refactoring projects with complex dependencies, such as the build repository. The issue was caused by the tool creating a new types.Importer instance for every external package it loaded from export data. This led to multiple, incompatible types.Package objects for the same package (like context), causing type mismatches even for identical types.

The rf tool was failing with spurious type errors when refactoring
projects with complex dependencies, such as the build repository.  The
issue was caused by the tool creating a new types.Importer instance for
every external package it loaded from export data.  This led to
multiple, incompatible types.Package objects for the same package (like
context), causing type mismatches even for identical types.
Copy link
Copy Markdown

@dr2chase dr2chase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rsc rsc merged commit bc4ed0b into rsc:main Jan 29, 2026
1 check passed
@jitsu-net jitsu-net mentioned this pull request Feb 3, 2026
@jitsu-net jitsu-net deleted the fix-importer branch February 4, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants