Skip to content

Add rbs to composed bundle update commands#3938

Open
modille wants to merge 1 commit intoShopify:mainfrom
modille:fix-setup-bundler-rbs
Open

Add rbs to composed bundle update commands#3938
modille wants to merge 1 commit intoShopify:mainfrom
modille:fix-setup-bundler-rbs

Conversation

@modille
Copy link

@modille modille commented Feb 5, 2026

Motivation

Closes #3937

Implementation

I added rbs to the gems array for the bundle update command in both the launcher and non-launcher paths.

Note

Should prism be in both of these places? And should --conservative be consistent in both places?

Automated Tests

I updated existing tests to expect rbs in the bundle update commands:

  • test_uses_custom_bundle_path_when_no_gemfile_lock_is_present
  • test_update_using_bundler_internals

Manual Tests

I suspect this fixes the issue based on the manual workaround I found and documented in #3937

  1. Create a project with a Gemfile that does NOT include rbs as a direct dependency
  2. Trigger an auto-update
  3. Observe that the bundle update command now includes rbs and that ruby-lsp is not downgraded

Without rbs in the update list, conservative mode can't resolve
ruby-lsp 0.18+ for projects that don't have rbs locked, causing
unexpected downgrades to 0.11.2.

Fixes Shopify#3937
@modille modille requested a review from a team as a code owner February 5, 2026 07:02
@modille
Copy link
Author

modille commented Feb 5, 2026

I have signed the CLA!

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.

ruby-lsp downgrades during auto-update

1 participant