Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

first try on faster bundle exec ruby #2118

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/bundle
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env ruby
if ARGV[0..1] == ["exec", "ruby"]
# stop execution early, to not load bundler/setup twice, to not parse the gemfile/dependencies twice
exec "ruby", "-rbundler/setup", *ARGV[2..-1] # execution ends here
end

require 'bundler'
# Check if an older version of bundler is installed
$:.each do |path|
Expand Down