Skip to content

Commit 13eed4a

Browse files
committed
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 ```
1 parent 8f32c5b commit 13eed4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pre_commit/languages/ruby.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def install_environment(
134134
helpers.run_setup_cmd(
135135
prefix,
136136
(
137-
'gem', 'install', '--no-document',
137+
'gem', 'install',
138+
'--no-document', '--no-format-executable',
138139
*prefix.star('.gem'), *additional_dependencies,
139140
),
140141
)

0 commit comments

Comments
 (0)