Skip to content

Commit f83d9f2

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 9065ae4 commit f83d9f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/roby/app/rake.rb

Lines changed: 2 additions & 1 deletion
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)