librelist archives

« back to archive

Homebrew + Web Availability

Homebrew + Web Availability

From:
Julian Berman
Date:
2011-10-12 @ 15:47
To accompany the recent discussion on homebrew and mirrors, would there
be interest in having homebrew hit something like
downforeveryoneorjustme.com (in the event curl 404s, say),
in order to be able to report to the user as to whether the package
source seems to be down?

Julian

Re: [homebrew] Homebrew + Web Availability

From:
Jan Lehnardt
Date:
2011-10-12 @ 16:01
On Oct 12, 2011, at 17:47 , Julian Berman wrote:

> To accompany the recent discussion on homebrew and mirrors, would there
> be interest in having homebrew hit something like
> downforeveryoneorjustme.com (in the event curl 404s, say),
> in order to be able to report to the user as to whether the package
> source seems to be down?

This sounds useful to me :)

To be pedantic, anything that is not a 100, 101, 200, 301, 302, 303 or 307
could trigger a request to dfeojm.com, including a connection refused 
situation.

Cheers
Jan
-- 

Re: [homebrew] Homebrew + Web Availability

From:
Charlie Sharpsteen
Date:
2011-10-12 @ 17:54
On Wed, Oct 12, 2011 at 9:01 AM, Jan Lehnardt <jan@apache.org> wrote:

>
> On Oct 12, 2011, at 17:47 , Julian Berman wrote:
>
> > To accompany the recent discussion on homebrew and mirrors, would there
> > be interest in having homebrew hit something like
> > downforeveryoneorjustme.com (in the event curl 404s, say),
> > in order to be able to report to the user as to whether the package
> > source seems to be down?
>
> This sounds useful to me :)
>
> To be pedantic, anything that is not a 100, 101, 200, 301, 302, 303 or 307
> could trigger a request to dfeojm.com, including a connection refused
> situation.
>

And then there are all the ways FTP can fail...

I thought about doing something like this when I wrote the mirror code, but
there are so many failure cases. For me, this is on the line between "useful
feature" and "ARRRGH! To many details to worry about!".

If someone wants to take a shot at coding up an implementation, I would
definitely review it.

-Charlie