Skip to content

Conversation

tarruda
Copy link
Member

@tarruda tarruda commented Apr 16, 2014

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

This is a temporary solution until we have prebuilt packages in a ppa or something like that

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
@tarruda tarruda changed the title [WIP] Configure travis to use prebuilt dependencies [RFC] Configure travis to use prebuilt dependencies Apr 16, 2014
@tarruda
Copy link
Member Author

tarruda commented Apr 16, 2014

I'm gonna merge now since this clearly improves travis build reliability

@tarruda tarruda merged commit 9379222 into neovim:master Apr 16, 2014
@mhinz
Copy link
Member

mhinz commented Apr 16, 2014

Very nice. 😎

@jszakmeister
Copy link
Contributor

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!

@mhinz
Copy link
Member

mhinz commented Apr 17, 2014

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. :)

@jszakmeister
Copy link
Contributor

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.

@tarruda
Copy link
Member Author

tarruda commented Apr 17, 2014

@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

@jszakmeister
Copy link
Contributor

@tarruda Never mind. It is failing in the same way as before--I didn't realize it was still broken. :-(

@tarruda
Copy link
Member Author

tarruda commented Apr 17, 2014

Apparently it's possible to host a luarocks mirror on github: https://github.com/agladysh/luarocks-mirror

@jszakmeister
Copy link
Contributor

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."

@jszakmeister
Copy link
Contributor

And there's also this: https://github.com/keplerproject/rocks

@jszakmeister jszakmeister mentioned this pull request Apr 17, 2014
@tarruda
Copy link
Member Author

tarruda commented Apr 17, 2014

@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.

dwb pushed a commit to dwb/neovim that referenced this pull request Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants