Skip to content

Commit

Permalink
Merge pull request #1442 from tdeo/tdeo/ruby_gem_path
Browse files Browse the repository at this point in the history
Unset GEM_PATH for ruby hooks
  • Loading branch information
asottile authored May 10, 2020
2 parents d89486b + b44461d commit 46f5cc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pre_commit/languages/ruby.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import pre_commit.constants as C
from pre_commit.envcontext import envcontext
from pre_commit.envcontext import PatchesT
from pre_commit.envcontext import UNSET
from pre_commit.envcontext import Var
from pre_commit.hook import Hook
from pre_commit.languages import helpers
Expand All @@ -28,6 +29,7 @@ def get_env_patch(
) -> PatchesT: # pragma: win32 no cover
patches: PatchesT = (
('GEM_HOME', os.path.join(venv, 'gems')),
('GEM_PATH', UNSET),
('RBENV_ROOT', venv),
('BUNDLE_IGNORE_CONFIG', '1'),
(
Expand Down

0 comments on commit 46f5cc9

Please sign in to comment.