Skip to content

Commit

Permalink
Fix unnecessary $LOAD_PATH modification in standalone script
Browse files Browse the repository at this point in the history
Due to the `bundler` gem itself being ignored from `$LOAD_PATHS`, a
`nil` value is being introduced here, resulting in the current folder
being added to the `$LOAD_PATH` by the standalone script.

I'm pretty sure this is unintentional.
  • Loading branch information
deivid-rodriguez committed Jul 30, 2021
1 parent 9842043 commit df54b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundler/lib/bundler/installer/standalone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def paths
gem_path(path, spec).sub(version_dir, '#{ruby_engine}/#{ruby_version}')
# This is a static string intentionally. It's interpolated at a later time.
end
end.flatten
end.flatten.compact
end

def version_dir
Expand Down

0 comments on commit df54b07

Please sign in to comment.