mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Merge pull request #2740 from pre-commit/gem-file-bleh
Revert "also ignore Gemfile in project"
This commit is contained in:
commit
bfe1a72734
2 changed files with 4 additions and 4 deletions
|
|
@ -39,7 +39,6 @@ def get_env_patch(
|
|||
('GEM_HOME', os.path.join(venv, 'gems')),
|
||||
('GEM_PATH', UNSET),
|
||||
('BUNDLE_IGNORE_CONFIG', '1'),
|
||||
('BUNDLE_GEMFILE', os.devnull),
|
||||
)
|
||||
if language_version == 'system':
|
||||
patches += (
|
||||
|
|
|
|||
|
|
@ -123,8 +123,9 @@ def test_ruby_hook_language_version(tmp_path):
|
|||
def test_ruby_with_bundle_disable_shared_gems(tmp_path):
|
||||
workdir = tmp_path.joinpath('workdir')
|
||||
workdir.mkdir()
|
||||
# this Gemfile is missing `source`
|
||||
workdir.joinpath('Gemfile').write_text('gem "lol_hai"\n')
|
||||
# this needs a `source` or there's a deprecation warning
|
||||
# silencing this with `BUNDLE_GEMFILE` breaks some tools (#2739)
|
||||
workdir.joinpath('Gemfile').write_text('source ""\ngem "lol_hai"\n')
|
||||
# this bundle config causes things to be written elsewhere
|
||||
bundle = workdir.joinpath('.bundle')
|
||||
bundle.mkdir()
|
||||
|
|
@ -134,5 +135,5 @@ def test_ruby_with_bundle_disable_shared_gems(tmp_path):
|
|||
)
|
||||
|
||||
with cwd(workdir):
|
||||
# `3.2.0` has new enough `gem` requiring `source` and reading `.bundle`
|
||||
# `3.2.0` has new enough `gem` reading `.bundle`
|
||||
test_ruby_hook_language_version(tmp_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue