Skip to content

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

@seanstory

Description

@seanstory

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions