Skip to content

Commit b44461d

Browse files
tdeoasottile
authored andcommitted
Unset GEM_PATH for ruby hooks
1 parent d89486b commit b44461d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pre_commit/languages/ruby.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import pre_commit.constants as C
1010
from pre_commit.envcontext import envcontext
1111
from pre_commit.envcontext import PatchesT
12+
from pre_commit.envcontext import UNSET
1213
from pre_commit.envcontext import Var
1314
from pre_commit.hook import Hook
1415
from pre_commit.languages import helpers
@@ -28,6 +29,7 @@ def get_env_patch(
2829
) -> PatchesT: # pragma: win32 no cover
2930
patches: PatchesT = (
3031
('GEM_HOME', os.path.join(venv, 'gems')),
32+
('GEM_PATH', UNSET),
3133
('RBENV_ROOT', venv),
3234
('BUNDLE_IGNORE_CONFIG', '1'),
3335
(

0 commit comments

Comments
 (0)