rules_ruby icon indicating copy to clipboard operation
rules_ruby copied to clipboard

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

Open robertgates55 opened this issue 4 years ago • 2 comments

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?

robertgates55 avatar Jul 31 '21 11:07 robertgates55

That's a great question.

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

kigster avatar Aug 04 '21 18:08 kigster

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

kigster avatar May 10 '23 17:05 kigster