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

solargraph bundle does not work for local gems #384

Closed
baelter opened this issue Oct 26, 2020 · 3 comments
Closed

solargraph bundle does not work for local gems #384

baelter opened this issue Oct 26, 2020 · 3 comments

Comments

@baelter
Copy link
Contributor

baelter commented Oct 26, 2020

Git gem with local path config in bundler does not work with solargraph bundle

Eg.

MyProject/Gemfile

...
gem 'my_gem', git: 'https://github.com/my_gem/my_gem.git', branch: 'master'
...
 $ bundle config
...
local.my_gem
Set for the current user (/Users/me/.bundle/config): "/Users/me/code/my_gem"
MyProject $ solargraph bundle
Documenting my_gem 0.1.0
my_gem 0.1.0 YARD documentation failed
1 gem could not be documented. You might need to run `bundle install`.
@castwide
Copy link
Owner

Does this work with bundle exec solargraph bundle?

@baelter
Copy link
Contributor Author

baelter commented Dec 17, 2020

Yes it does. Have not been adding solargraph to Gemfiles up until now. But might have to start doing that then? Or could this be sorted anyway?

@castwide
Copy link
Owner

It might be necessary here because my_gem gets installed as a local gem. In projects where the Bundler installs the gems at the system level, you can usually get away with excluding Solargraph from the Gemfile.

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

2 participants