mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix ruby hooks when --format-executable is in gemrc
I used this gemrc to break things (default on opensuse): ```yaml --- :benchmark: false :install: --format-executable --no-user-install install: --format-executable --no-user-install :backtrace: true :update_sources: true :format_executable: true :verbose: true :update: --format-executable --no-user-install update: --format-executable --no-user-install :bulk_threshold: 1000 :sources: - https://rubygems.org ```
This commit is contained in:
parent
8f32c5b929
commit
13eed4ac5b
1 changed files with 2 additions and 1 deletions
|
|
@ -134,7 +134,8 @@ def install_environment(
|
|||
helpers.run_setup_cmd(
|
||||
prefix,
|
||||
(
|
||||
'gem', 'install', '--no-document',
|
||||
'gem', 'install',
|
||||
'--no-document', '--no-format-executable',
|
||||
*prefix.star('.gem'), *additional_dependencies,
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue