-
-
Notifications
You must be signed in to change notification settings - Fork 942
Description
Hi all,
there seems to be a bug introduced in jruby-1.7.14 that when bundling in a folder with two+ gemspecs it will not work. It does not seem to be a bundler bug, as it does not happen on jruby-1.7.13 with the same bundler version (1.7.2) while it happens on 1.7.14 with bundler version 1.7.2.
I used this excellent sample repository created by @jasonrclark to recreate the issue, which he created when we noticed the bug on the shoes mailing list. The repository is this: https://github.com/jasonrclark/wat_two_gemspecs
See my command line output for a bit more details:
tobi@speedy:~/github$ git clone git@github.com:jasonrclark/wat_two_gemspecs.git
Cloning into 'wat_two_gemspecs'...
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 18 (delta 2), reused 18 (delta 2)
Receiving objects: 100% (18/18), done.
Resolving deltas: 100% (2/2), done.
Checking connectivity... done.
tobi@speedy:~/github$ cd wat_two_gemspecs/
tobi@speedy:~/github/wat_two_gemspecs$ rvm use jruby-1.7.14
Using /home/tobi/.rvm/gems/jruby-1.7.14
tobi@speedy:~/github/wat_two_gemspecs$ gem list
*** LOCAL GEMS ***
axiom-types (0.1.1)
bundler (1.7.2)
bundler-unload (1.0.2)
# snip...
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
thread_safe (0.3.4 java)
virtus (1.0.3)
tobi@speedy:~/github/wat_two_gemspecs$ bundle
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake 10.3.2
RuntimeError: more then one gemspec found. please specify a specfile
An error occurred while installing another_gemspec (0.0.1), and Bundler cannot
continue.
Make sure that `gem install another_gemspec -v '0.0.1'` succeeds before
bundling.
tobi@speedy:~/github/wat_two_gemspecs$ rvm use --create jruby-1.7.13@wat
jruby-1.7.13 - #gemset created /home/tobi/.rvm/gems/jruby-1.7.13@wat
jruby-1.7.13 - #generating wat wrappers..........
Using /home/tobi/.rvm/gems/jruby-1.7.13 with gemset wat
tobi@speedy:~/github/wat_two_gemspecs$ gem list
*** LOCAL GEMS ***
gem-wrappers (1.2.4)
rvm (1.11.3.9)
tobi@speedy:~/github/wat_two_gemspecs$ gem install bundler
Fetching: bundler-1.7.2.gem (100%)
Successfully installed bundler-1.7.2
1 gem installed
tobi@speedy:~/github/wat_two_gemspecs$ bundle
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake 10.3.2
Using another_gemspec 0.0.1 from source at .
Using bundler 1.7.2
Using wat_two_gemspecs 0.0.1 from source at .
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
I'd really appreciate a quick fix/release of 1.7.15 as this means that the current shoes4 build is not able to be installed with jruby-1.7.14 (we have 3 gemspecs).
Thanks for all your work on JRuby and ❤️ =)
Tobi