Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Jan 2021 08:09:55 -0800
From:      Chris <portmaster@bsdforge.com>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Cc:        Mathieu Arnold <mat@freebsd.org>
Subject:   Re: GitHub: size of remote file is not known
Message-ID:  <1e42b247805ac6714e7232c7194688cd@bsdforge.com>
In-Reply-To: <20210105114854.zl66zzuwooghxaoz@aching.in.mat.cc>
References:  <afdcd5b9b8d5b4f40527c2793b28b408@bsdforge.com> <20210105114854.zl66zzuwooghxaoz@aching.in.mat.cc>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-01-05 03:49, Mathieu Arnold wrote:
> On Mon, Jan 04, 2021 at 08:04:32PM -0800, Chris wrote:
>> I don't use Github. So I'm not familiar with their service(s).
>> But ports using source fetched from them always return:
>> size of remote file is not known
>> Is it that their servers simply refuse to return size/content-length
>> or is this something else?
>> I can see where this might turn into a problem for those attempting
>> to build ports on a system with limited resources -- especially
>> during a meta-port build, and even more so for newcomers.
>> 
>> Is anyone familiar with why this is so? I'd like to change this.
> 
> USE_GITHUB is using a GitHub (and a git) feature to have git-archive(1)
> files generated and served on the fly.
Feature? ;-)
> So, the server has no idea how
> small or large the file will be, as it does not exist yet, so it cannot
> report the size to the http client.
> 
> Once one is generated it gets cached for a while, so if the file has
> been requested not too far back, the server will have it cached and will
> know the size, but it only happens for files that are requested
> frequently.
Ahh. Then it looks grim for making any changes in that regard.
Thank you very much for the insight, Mathieu.

--Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1e42b247805ac6714e7232c7194688cd>