Skip to content

Commit

Permalink
Prevent Shadowenv from mutating BUNDLE_GEMFILE
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Nov 18, 2024
1 parent 150f834 commit c52c2cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vscode/src/ruby/shadowenv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export class Shadowenv extends VersionManager {
`${shadowenvExec} exec -- ruby`,
);

// Do not let Shadowenv change the BUNDLE_GEMFILE. The server has to be able to control this in order to properly
// set up the environment
delete parsedResult.env.BUNDLE_GEMFILE;

return {
env: { ...process.env, ...parsedResult.env },
yjit: parsedResult.yjit,
Expand Down

0 comments on commit c52c2cd

Please sign in to comment.