4 ms·
Even worse is other tools that rely on Github, like Homebrew (Mac OS X package manager) which breaks in various silly ways when Github is down. Anyone happen t
by spacemanaki 13y ago
Even worse is other tools that rely on Github, like Homebrew (Mac OS X package manager) which breaks in various silly ways when Github is down.
Anyone happen to know a way around this specifically? Trying to install some stuff and brew just bails after getting 5xx from github.com.
- glurgh 13y agoTry ports, perhaps? http://www.macports.org/ http://www.macports.org/
- js2 13y agoClone the homebrew repo. Use a cronjob or Jenkins or some such to periodically fetch updates to a server under your control. Modify homebrew and its setup script to use your repo (it's been a while since I did this but the Github URL for the homebrew repo used to be hard coded in one of homebrew's ruby scripts). Whenever setting up a new machine, use the modified setup script. Periodically you can merge upstream into your clone to get updated recipes. (e.g., the aforementioned cronjob can mirror master from github to remotes/upstream/master in your repo, then separately you merge that into your master). Your servers are now immune to github outages[1] and you can review recipe updates before your servers update to those recipes. [1] unless of course the recipes you're using are hosted on github. But you could recursively mirror those sources too and modify the recipes as needed. edit: I'm on a mobile device but I can provide further details the next time I'm in front of a keyboard in case this wasn't clear.
- spacemanaki 13y ago> unless of course the recipes you're using are hosted on github Yeah, the problem I was having at the time was that Homebrew was trying to fetch a tarball hosted on Github. I was just whinging though, that was the only time I've ever hit that particular snag. The system you propose would be great, but more work than switching to running headless Linux VMs on OSX for most dev work ;) This is something I have been drifting toward for a while now, using Vagrant.
- elithrar 13y agoTo be fair to Homebrew, the reliance on GitHub is probably what makes it so accessible: easy for others to add formulae, and no hosting (and lessened security considerations) for them to worry about.