Skip to content

Add rbs to composed bundle update commands#3938

Merged
st0012 merged 1 commit intoShopify:mainfrom
modille:fix-setup-bundler-rbs
Feb 5, 2026
Merged

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

Conversation

@modille
Copy link
Contributor

@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
Contributor Author

modille commented Feb 5, 2026

I have signed the CLA!

@rafaelfranca rafaelfranca added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels Feb 5, 2026
@st0012 st0012 self-assigned this Feb 5, 2026
Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

Thank you!

@st0012 st0012 merged commit 1bf9deb into Shopify:main Feb 5, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ruby-lsp downgrades during auto-update

3 participants