summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-27 18:37:06 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-02-02 16:47:08 +0100
commit2a53367358317f08947847a10364c2e2b2a744a0 (patch)
tree229782a6c88314758ba457b94f4b06c0c42558bf /lib
parent5d0959c7dccb21433686985d5b52acf7982a356b (diff)
downloadbundler-2a53367358317f08947847a10364c2e2b2a744a0.tar.gz
Workaround jruby issuejruby_issue
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source/path.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb
index f98f5155fb..e73e33d922 100644
--- a/lib/bundler/source/path.rb
+++ b/lib/bundler/source/path.rb
@@ -132,7 +132,11 @@ module Bundler
end
def expand(somepath)
- somepath.expand_path(root_path)
+ if Bundler.current_ruby.jruby? # TODO: Unify when https://github.com/rubygems/bundler/issues/7598 fixed upstream and all supported jrubies include the fix
+ somepath.expand_path(root_path).expand_path
+ else
+ somepath.expand_path(root_path)
+ end
rescue ArgumentError => e
Bundler.ui.debug(e)
raise PathError, "There was an error while trying to use the path " \