Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to detect bundler spec under <gem path>" #536

Open
seanstory opened this issue Feb 6, 2023 · 2 comments
Open

"Unable to detect bundler spec under <gem path>" #536

seanstory opened this issue Feb 6, 2023 · 2 comments

Comments

@seanstory
Copy link

Environment:

  • rbenv 1.2.0
  • jruby 9.3.3.0
  • bundler 2.4.6
  • warbler 2.0.5
  • OSX 13.2

Issue

When running bundle exec warble I get this error:

Unable to detect bundler spec under '/opt/homebrew/Cellar/rbenv/1.2.0/versions/jruby-9.3.3.0/lib/ruby/gems/shared/gems/bundler-2.4.6'' and its sub-dirs

This makes sense, as there's no gemspec file there, just a exe/ dir with bundle and bundler executables. The gemspec for bundler lives in

/opt/homebrew/Cellar/rbenv/1.2.0/versions/jruby-9.3.3.0/lib/ruby/gems/shared/specifications/default/bundler-2.4.6.gemspec 

Workaround

I copied the gemspec to where warbler seems to be looking for it, and now it's working. However, I expect this will fall apart if/when I update my bundler gem.

cp /opt/homebrew/Cellar/rbenv/1.2.0/versions/jruby-9.3.3.0/lib/ruby/gems/shared/specifications/default/bundler-2.4.6.gemspec opt/homebrew/Cellar/rbenv/1.2.0/versions/jruby-9.3.3.0/lib/ruby/gems/shared/gems/bundler-2.4.6/bundler.gemspec
@olleolleolle
Copy link
Member

@seanstory Yes, we have had valiant efforts to try to support Bundler 2.x.

Thanks for your report!

@dolzenko
Copy link

So there is no fix for this at the moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants