Skip to content

Preserve project binstubs in composed bundles - #4284

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/ruby-lsp-bundler-bin-4280
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/ruby-lsp-bundler-bin-4280

Conversation

@efegokdemir

Copy link
Copy Markdown

Motivation

When launcher mode installs or updates a composed bundle in process, Bundler honours the project's bin setting and rewrites its binstubs to use .ruby-lsp/Gemfile.

Closes #4280.

Implementation

Temporarily direct Bundler's bin setting to .ruby-lsp/bin for both commands. This keeps generated binstubs with the composed bundle and restores the project setting afterwards.

Automated Tests

bundle exec ruby -Itest test/setup_bundler_test.rb: 44 runs, 201 assertions, no failures, errors or skips. The two new regression tests were rerun after rebasing onto current main: 2 runs, 8 assertions, all passing. RuboCop and git diff --check passed.

Manual Tests

Not run.

@efegokdemir
efegokdemir requested a review from a team as a code owner November 23, 2026 03:02

This branch has not been deployed

No deployments
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.

Composed bundle rewrites project binstubs when Bundler bin is set

1 participant