warbler icon indicating copy to clipboard operation
warbler copied to clipboard

gems bundled through git not found

Open betelgeuse opened this issue 12 years ago • 3 comments

bundling warbler through git and trying to run a jar I get:

betelgeuse@host ~ $ java -jar app.jar 
git://github.com/jruby/warbler.git (at master) is not checked out. Please run `bundle install`

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1446624-gems-bundled-through-git-not-found?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).

betelgeuse avatar Apr 03 '13 10:04 betelgeuse

Can you share your Gemfile? If you using a :git => for warbler be aware that bundler will not work with shallow repos.

jkutner avatar Apr 06 '13 04:04 jkutner

I used the following Gemfile to get latest warbler because the released gem had issues that I don't remember any more:

source 'https://rubygems.org'

gem 'google_drive'
gem 'launchy'
gem 'mail'
gem 'warbler', github: 'jruby/warbler'

Are you saying that warbler creates shallow repos and bundler can't handle them? I am just following the README that says: "Warbler supports Bundler for gems and git repositories, but not for plain path components."

betelgeuse avatar Apr 07 '13 19:04 betelgeuse

No, it should handle git gems. The only reason I brought it up was that I got the same error on the CI server because it was pointing to a repo that was checked out with the --depth=50 option. I believe the error you are seeing is generated by Bundler (as opposed to Warbler) -- I'm not saying it's bundler's fault, though. I'll have to look into it some more.

jkutner avatar Apr 07 '13 20:04 jkutner