Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi-path modules adding duplicate dependencies in tach sync #569

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

emdoyle
Copy link
Member

@emdoyle emdoyle commented Jan 25, 2025

When using a multi-path module, tach sync may add the same dependency multiple times. This is because each module path independently detects its dependencies and queues additions.

This PR fixes the behavior by checking at edit-time whether the dependency already exists. This is appropriate because the 'bulk module' concept is isolated to the TOML representation, and isn't known when sync is detecting dependencies.

@emdoyle emdoyle merged commit c1d53f6 into main Jan 25, 2025
8 of 11 checks passed
@emdoyle emdoyle deleted the fix-sync-multi-path-modules branch January 25, 2025 00:22
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.

1 participant