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

Avoid setting GEM_HOME and GEM_PATH for rbenv #1966

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

vinistock
Copy link
Member

Motivation

Closes #1947

Rbenv doesn't actually modify the GEM_HOME or GEM_PATH. It also doesn't add gem binary directories into the PATH. It follows a similar approach to ASDF by adding its shims directory into the PATH.

Implementation

We can rely on the env.PATH returned by the activation script directly, without setting anything manually. That should be enough to find the gem executables.

Automated Tests

Adapted our tests.

@vinistock vinistock added bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes labels Apr 24, 2024
@vinistock vinistock self-assigned this Apr 24, 2024
@vinistock vinistock requested a review from a team as a code owner April 24, 2024 17:41
@vinistock vinistock requested review from andyw8 and st0012 April 24, 2024 17:41
@vinistock vinistock merged commit 92c9f83 into main Apr 24, 2024
42 of 44 checks passed
@vinistock vinistock deleted the vs/fix_rbenv_activation branch April 24, 2024 18:14
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 vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with rbenv and git sources
2 participants