-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Vendored gems require bundle install to be discovered #6683
Comments
Bundler definitely does not support using gems without having ever run bundle install before. If you feel like this is a bug, can you please provide enough information for us to reproduce it? |
Sure, I can produce a Docker container this weekend. But I didn't realize this behavior was by design. I don't know much about how bundler works internally, so forgive me if this sounds ignorant. Why is |
the first possibility off the top of my head is compiled gems, but the overall situation of “these files need to be installed in a specific way for this exact machine” is the entire reason why we only support using gems after running bundle installl. gems are not always files you can copy to a new machine and use. |
I can understand that ensuring gems are suitable for the machine is a good rationale, but in this case the gems were built in the same Docker container where they will be used, so it shouldn't be necessary to run Here is the repo where I tried to reproduce this issue. https://github.com/volkanunsal/bundler_start_up |
Thanks @volkanunsal! I was 100% sure I had seen this recently, so I decided to investigate since you provided a reproduction! 😃 I confirmed the issue, and that #6628 fixes it. So my plan would be to include that PR in the 1.16.5 milestone, and then you can fix the issue by configuring I think the fact that PR was not backported is unintentional, as per my comment in #6672 (comment). |
To further try to explain what the issue is about. In bundler 1, when you have |
It seems that this issue has been answered. Closing. |
Yeah, the relevant PR was marked for backporting (to 1.17.0 in the end), so this should get fixed once we released that version! |
I'm trying to run a Docker container using gems from
vendor/bundle
, but the first time I use a gem such asrake
bundler complains that it cannot find the library. I need to runbundle install
again and see theUsing gem XYZ
fly by on my terminal before these libraries become discoverable by bundler.Just to be sure, I have
BUNDLE_PATH
set in my environment to/app/vendor/bundle
and I have also tried modifying~/.bundle/config
myself to addBUNDLE_PATH
, but nothing worked.Is there something I'm missing here?
The text was updated successfully, but these errors were encountered: