Skip to content

Commit c1b4300

Browse files
committed
JT: Use bundle config mirror instead of changing the Gemfile
1 parent f14a720 commit c1b4300

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tool/jt.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,10 +1303,8 @@ def test_bundle(*args)
13031303

13041304
options = %w[--experimental-options --exceptions-print-java]
13051305

1306-
# There seems to be no other way to configure the port for Bundler, so we change the Gemfile
1307-
lines = File.readlines("Gemfile").reject { |line| line.start_with?('source ') }
1308-
lines.unshift "source 'http://localhost:#{port}'"
1309-
File.write("Gemfile", lines.join("\n"))
1306+
run_ruby(environment, *args, *options,
1307+
'-Sbundle', 'config', '--local', 'mirror.http://localhost:8808', "http://localhost:#{port}")
13101308

13111309
run_ruby(environment, *args, *options,
13121310
'-Sbundle', 'install', '-V', *install_flags)

0 commit comments

Comments
 (0)