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

bugfix: fix suffixification of indirect dependencies #5375

Merged
merged 2 commits into from
Sep 28, 2024
Merged

Conversation

mitchellwrosen
Copy link
Member

@mitchellwrosen mitchellwrosen commented Sep 26, 2024

Overview

Fixes #5374

This PR fixes a bug in suffixification of indirect dependencies. The bug was caused by the unnecessary-but-harmless optimization to the stopping condition of suffixification (Set.size matchingRefs == 1), which has been around forever, and which suddenly became necessary-not-to-do-and-decidedly-harmful-if-done after suffixification was amended to prefer direct deps to indirect deps in #5338. The fix was simply to delete that optimization.

Test coverage

I've added a transcript (failing in the first commit) that demonstrates the fix.

@mitchellwrosen mitchellwrosen marked this pull request as ready for review September 26, 2024 22:52
@ceedubs
Copy link
Contributor

ceedubs commented Sep 27, 2024

I can confirm that this fixes the original issue that I reported for this!

@aryairani aryairani merged commit f6572a4 into trunk Sep 28, 2024
32 checks passed
@aryairani aryairani deleted the fix-5374 branch September 28, 2024 00:13
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.

suffixifyByHash doesn't properly suffixify an indirect dependency name
3 participants