-
Notifications
You must be signed in to change notification settings - Fork 142
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
Bundle icu4c #4
Bundle icu4c #4
Conversation
fwiw you can add this to your before_script:
- "apt-get install libicu-dev" But, I'd still like to get around having to install it :) |
I'm really interested in this topic. I'm trying to install the Gem on Heroku, where unfortunately the libicu-dev library is not available. Just to let you know, I tried with this branch but it's still raising an error.
|
Good point. We really want this to help support heroku. |
I can't seem to get to work anymore.
|
@josh did you come up with a solution, or did you just package it with a pre-built binary? I'm trying to get this working on heroku. |
@jch never figured it out. PDI :D |
@josh 💩, thanks anyways |
This is still uninstallable on Heroku, which is a bummer since http://github.com/github/linguist depends on it. @jch, did you figure anything out? |
@juliamae haven't looked at it again. At some point, I'll need to take a look again since https://github.com/github/github-html uses linguist and I'm working on open sourcing that. EDIT: url is now https://github.com/jch/html-pipeline |
I'm taking a look right now, will hopefully post progress soon. |
i was able to fix this, but i don't have push access to update the pr. |
rad! you should have push now On Oct 2, 2012, at 9:07 PM, "Scott J. Goldman" notifications@github.com wrote:
|
hmm i guess the PR doesn't update with new commits when it's closed? but i did push the fix to this branch with 3a916ab |
fuck yeah thanks man! On Oct 2, 2012, at 10:04 PM, "Scott J. Goldman" notifications@github.com wrote:
|
@scottjg ✨ I'll update the gem to point at this. |
@brianmario is there anything holding this back from being merged into master and bumping the version? |
Not really... I just still feel icky about a 19MB gem : |
@brianmario I've been specifying this branch in the community app (for use with html-pipeline) and it is ccrraazzyy slow to install during CI and deploy. It adds about 5 minutes to our CI and over 5 minutes to the Heroku deploy 😒 However, it's successfully deploying to Heroku 🎉 Rather than have it be this slow for people who don't need it, maybe offer a tag that has icu4c bundled or maintain this branch with updates. Maintaining a branch is a pain, but I don't think it makes sense to blow up the size & ruin the performance for everyone. |
@juliamae woohoo! Yeah I'm in favor of maintaining the branch. I don't think there will be many changes to master very often so it shouldn't be hard to maintain. Thanks for the update! |
Is it possible to use heroku buildpacks? I could use this buildpack (https://github.com/maca/mutli-buildpack-icu4c) to compile icu4c on the heroku instance but I am having issues with the lib path while compiling the gem ext. |
It seems very difficult to get this gem to work on heroku. I've used the bundle-icu branch. This option got the furthest, and got to a point of require 'charlock_holmes' working - then failed when attempting to use any functions with an error of "could not find magic files". |
I'm having the same issue as @malsharman. I added the following to my Gemfile: gem 'charlock_holmes', :git => "git://github.com/brianmario/charlock_holmes.git", :branch => "bundle-icu" This deploys to Heroku, and |
It doesn't help us determine if the file is binary or not, and just seems to create a bunch of problems like the ones in #4
the magic files issue should be resolved now that #26 is merged into the bundle-icu branch. can you guys try again if you were having that problem? |
Awesome, it works now on Heroku!! Thanks @scottjg! |
For anyone who needs it, I added a gem for the bundle-icu branch.
Also created a fork of github-linguist for deploying to heroku with this as its charlock_holmes dependency.
|
@geothird The bundle-icu gem fails for me on Heroku with:
|
I didn't include the lib, this one should work, tested on heroku.
|
It doesn't help us determine if the file is binary or not, and just seems to create a bunch of problems like the ones in #4
The extra setup steps are getting to me now. Really, really don't want to have to remember to brew install icu4c again. Its also breaking my travis builds. :(
Another approach would be to spin off a
libicu
gem for just the source. We could also attempt binary builds that way as well./cc @brianmario @tmm1 @rtomayko @tanoku