-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[RFC] Configure travis to use prebuilt dependencies #550
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
Conversation
Dependencies are now hosted in a github repository and this brings two advantages: - Improved build time with travis since we no longer have to build each dependency - Less chance of build errors due to external servers being down since Github is now the single point of failure
I'm gonna merge now since this clearly improves travis build reliability |
Very nice. 😎 |
Sorry I'm a bit offline this week (kids are on Spring Break). Was luarocks doing the same thing as before where it would connect but wouldn't send a response? I'm just curious. The failure mode it had last time was pretty ugly, and unfortunately I was unable to try myself when things went down. :-( Thanks! |
Now we have to do the same for non-Travis purposes. Because every few minutes somone joins #neovim and complains that the luarocks part stalls. :) |
Yeah, I've been looking into stuff around this. In particular, if it's possible to host the bits we need on a server somewhere. I have a VPS that I can use to do this, or perhaps just a GitHub pages area. It's taking me some time to digest it all since I'm new to the Lua infrastructure and the day job gets in the way sometimes. :-) One thing I'd like to do is encourage people to only build the deps when they need to. I have a branch that helps on this front but needs a little more testing and work. |
@mhinz a solution for local environments is to use the 'puc-rio' mirror for installing dependencies, it seems to be more reliable than luarocks.org. This should do the trick: cat >> .deps/usr/etc/luarocks/config-5.1.lua << "EOF"
rocks_servers={
"http://luarocks.giga.puc-rio.br/"
}
EOF |
@tarruda Never mind. It is failing in the same way as before--I didn't realize it was still broken. :-( |
Apparently it's possible to host a luarocks mirror on github: https://github.com/agladysh/luarocks-mirror |
I saw that. I think I'd like to just do a subset of luarocks though (only the parts we need). Plus, it's two years old, so I don't know if that technique still works. :-) I'd like to find someway of saying "here's our full set of dependencies; now mirror them." |
And there's also this: https://github.com/keplerproject/rocks |
@jszakmeister don't worry about that, hosting package indexes for the build process shouldn't be our responsibility. I've updated the wiki with information explaining how to work around these luarocks errors. |
Dependencies are now hosted in a github repository and this brings two advantages:
This is a temporary solution until we have prebuilt packages in a ppa or something like that