bazelruby / rules_ruby

Formerly canonical rules for ruby, that are about 2-3 years behind current Bazel. If they work for you great, but if not — please try the new rules ruby by Alex Radionov: https://github.com/bazel-contrib/rules_ruby
Apache License 2.0
99 stars 37 forks source link

`ruby_bundle` 'the path ... does not exist' for `gem 'dave', path: dave` gems in Gemfile #111

Open robertgates55 opened 3 years ago

robertgates55 commented 3 years ago

Our Gemfile contains a couple of local 'path' referenced gems like this:

gem 'cube_api', path: 'engines/cube_api'
...

And when doing a bazel build of the ruby_bundle we get the following error:

The path
`/private/var/tmp/_bazel_robgates/8efc94f49031def35bcd0c9e587be3f7/external/webapp_bundle/engines/cube_api`
does not exist.
ERROR: Analysis of target '//src/webapp:webapp_lib' failed; build aborted: Analysis failed

Is there a way to symlink/include those paths for the the ruby_bundle?

kigster commented 3 years ago

That's a great question.

I know we recently added ability to vendor gems. Can you do that with your private gems?

kigster commented 1 year ago

Looking for additional core maintainers: https://github.com/bazelruby/rules_ruby/discussions/146