Skip to content

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

Open
@seanstory

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions