Skip to content

Commit 9d09a00

Browse files
committed
fix: do not close stdout before calling bundler-using processes
It breaks it in some ways when loading the gemspec files
1 parent 22798ae commit 9d09a00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/roby/app/rake.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,8 @@ def self.define_rubocop_if_enabled(
815815
end
816816

817817
def self.detect_rubocop?
818-
run_rubocop("--version", out: :close)
818+
# Do NOT use out: :close here, it breaks bundler in some ways
819+
run_rubocop("--version", out: "/dev/null")
819820
true
820821
rescue Errno::ENOENT
821822
false

0 commit comments

Comments
 (0)