-
Notifications
You must be signed in to change notification settings - Fork 4
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
buildpack bundler version with latest nokogiri (1.11.0 - native gems) fails to deploy #1105
Comments
Output from the failed build:
|
The latest Nokogiri release that you're using (1.11.0) has some significant changes with platform-specific code: https://github.com/sparklemotion/nokogiri/releases/tag/v1.11.0. It might be that vendoring Nokogiri means you're now pushing MacOS binaries that won't run on Ubuntu. |
It looks like last time you all deployed with 1.17.3. Can you go back to using a 1.x bundler version in the short term? I've got a branch of Bundler 2.2.3 staged you can try it as well if you want:
From #1104. |
Yep, that's what's happening, and it is discussed and fixed in rubygems/rubygems#4012 and related PRs/issues. For now we can wait for an upgrade, will test 2.2.3 from #1104 to see if it includes the fix. |
This is a related issue that I can repro without Nokogiri rubygems/rubygems#4269. If this is a nokogiri issue, then I'll open a separate issue to track this bundler problem and close this ticket. |
@schneems nokogiri was just the first gem we started using with native gems, it's not a nokogiri problem as such. I haven't yet tried your branch with the newer version of bundler as our workaround is good enough at the moment. Feel free to close this - what ever makes most sense to you. |
Closing this as it and tracking the still open issue here #1106 |
@prognostikos try this out on your app:
Then deploy. If it still doesn't work please open a support ticket https://help.heroku.com and link back to this comment and I can investigate some more. |
@schneems yep, we ended up doing that, however for some reason instead of using the linux or mac version it always falls back to compiling the ruby version. Haven't looked into it though, was just glad to be able to upgrade nokogiri and left it there. |
We have a rails app where we vendor our gems, developing on Mac. When upgrading Nokogiri from 1.10.0 to 1.11.0 we see a problem where the version of bundler used in the buildpack does not install the Linux version of the gem or fall back to the ruby version of the gem.
This seems to be related to rubygems/rubygems#4012 and looks to be fixed in the latest version of bundler.
For now we have reverted the Nokogiri upgrade in order to be able to continue to use the buildpack, but as 1.11.0 is a security release we'd prefer to upgrade ASAP.
The text was updated successfully, but these errors were encountered: