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 inline mode with multiple sources #6699

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

If we're in inline mode, Bundler first resolves using only local gems, and if some gems are missing, then it re-resolves using remote gems. However, "source resolution" from the initial "local" try was being memoized, resulting in Bundler not looking for some gems remotely in the second resolution.

What is your fix for the problem, implemented in this PR?

This commit forces a proper re-resolve in this case.

Fixes #6696.

Make sure the following tasks are checked

If we're in inline mode, Bundler first resolves using only local gems,
and if some gems are missing, then it re-resolves using remote gems.
However, "source resolution" from the initial "local" try was being
memoized, resulting in Bundler not looking for some gems remotely in the
second resolution.

This commit forces a proper re-resolve in this case.
@deivid-rodriguez deivid-rodriguez force-pushed the fix-inline-with-multiple-sources branch from 581137b to fdc6310 Compare May 25, 2023 19:13
@deivid-rodriguez deivid-rodriguez merged commit 6bf30c5 into master Jun 5, 2023
92 checks passed
@deivid-rodriguez deivid-rodriguez deleted the fix-inline-with-multiple-sources branch June 5, 2023 17:16
deivid-rodriguez added a commit that referenced this pull request Jun 8, 2023
Fix inline mode with multiple sources

(cherry picked from commit 6bf30c5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bundler inline doesn't work when you have multiple gem sources on Bundler 2.4.4 through 2.4.13
1 participant