-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Native extension can not be loaded for gem built from git #4106
Comments
@timon so sorry this never got a response -- could you check whether 1.12.0.pre.2 improves things for you? |
@segiddins No, tried with |
@timon Can't seem to reproduce this with |
ping @timon
|
I can confirm that prior to 1.12.5 I saw this issue when referencing a gem with a git ref in my Gemfile but upgrading to 1.12.5 fixed it. |
@segiddins: A new wrinkle to add: vending doesn't work, but if I delete the cached gem it works. Test case: https://gist.github.com/jcoleman/25c66a32c8338abb027471a0e8efe71a If I run:
everything runs as expected. But if I run:
then it fails as it is unable to load the native extension. If after running the vendor/package example above I then run:
then it's back to working. |
Could you check if running
Didn't seem to run into any issues while trying to repro on this version. |
@b-ggs I was able to reproduce again; it seems my initial repro steps comment was slightly incorrect.
|
I also updated my gist since it seemed to reference a commit that my machine couldn't resolve for some reason; not sure why it wasn't a problem for you. |
@jcoleman Hmm, is this not the expected behavior when if you haven't run
Seemed to work fine after running (By the way, I modified your gist to remove the commit reference since my machine couldn't resolve that revision either, that's why it worked for me. Used your exact Gemfile to repro this time around though.) |
@b-ggs I'm not sure if that's expected behavior officially or not. At the very least I'd say it would be confusing behavior, since the package run prints out output exactly like an install, and, in fact, installs the gems into the vendor cache directory. |
I cannot reproduce the bug using bundler 1.14.0.pre.2, using the steps given in #4106 (comment) |
Closing due to lack of ability to reproduce. If the issue persists, please open up a new bug? |
Hi! This could be related to #3413 and #3014
My program can not load native extension for
eventmachine
gem when it is specified withgithub
flag in Gemfile.The extension is built in gem's
/ext/
dir, but is not copied into/lib/
Below are relevant excerpts with description of my environment (Host is CentOS 7)
The extension is built, however, and
cp
could be used as workaround:The text was updated successfully, but these errors were encountered: