Date: Tue, 5 Jan 2021 12:49:50 +0100 From: Mathieu Arnold <mat@freebsd.org> To: Chris <portmaster@bsdforge.com> Cc: freebsd-ports <freebsd-ports@freebsd.org> Subject: Re: GitHub: size of remote file is not known Message-ID: <20210105114854.zl66zzuwooghxaoz@aching.in.mat.cc> In-Reply-To: <afdcd5b9b8d5b4f40527c2793b28b408@bsdforge.com> References: <afdcd5b9b8d5b4f40527c2793b28b408@bsdforge.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--zefa6okrjtm7kasy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. 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. --=20 Mathieu Arnold --zefa6okrjtm7kasy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAl/0UlpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgIuXRAAhHHKYBTt5LzXSZ8q6RnpmCx4BPEXiYUZux0nfnGAXu7ksGGoOh6ed5NP L7SrrrHod6xsY877bFsyCrATBvs+B/AeyKjT0RmInupnkamxGvg2CFpYoxSijCLO bhhPIhrS4uckotEnpMsSqU7yQ360jzkuXh9jZqrqchhltTwSXKNNEntpCEFBjT9k UuXKvYo+Gyr1jfXU8Z6FiVcJUmymyVZjg5fFt4kuWC63XJSVnNZwkfiUYZcJA7px 9NBAL2+XQJfxud/BfU+0CDd8L590G6xdFQhnmhqmjOjO1wKikEWbJJzxQsfYdoKh 3ZD1/f7P3z6hlwQ6MZKbF39Qjv/X901fP5OXMFtJr/v00onNeemqPeqmkgv7s4OC yWS7+CH17dcnWMFvKI4aybvRvc0Q8qeomP3XUf2RQwVI2IqYYDiTLXhlA020JtIq 4ZSqn6rMzoWyjdZ8xaERXsmqNJfeM24k1+/4BgjFEkLfHVc7U7CyxbQKlZfSzd8H ScfsfDmuo04vWSrBxeOwrN1RQ1mAwYzYX86+e+N5RBk4tW8pP4p30kQBTyBXrCrR AHJqhaqa+5m5wh5qXrvuU1z5mBZTmQnDpmyfZ89d0L9BxSTGnmmF3D1EDoRjsdGh uUtMNU8j14rs83K+cxYNWGY288dfwI6Evb0Ayt8rdlcv/OfEu4o= =vCfT -----END PGP SIGNATURE----- --zefa6okrjtm7kasy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210105114854.zl66zzuwooghxaoz>