nigels-com / glew

The OpenGL Extension Wrangler Library
Other
2.58k stars 608 forks source link

Shallow clone of registry repositories #393

Closed geffrak closed 9 months ago

geffrak commented 9 months ago

Issue

Executing make from auto fails because OpenGL-Registry is a large repository (in size), as shown in the snippet below.

--------------------------------------------------------------------
Downloading OpenGL-Registry
--------------------------------------------------------------------
git clone https://github.com/KhronosGroup/OpenGL-Registry.git OpenGL-Registry
Cloning into 'OpenGL-Registry'...
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
make: *** [Makefile:95: OpenGL-Registry/.dummy] Error 128

Solution

Given that we seem only to require the last commit from that repository, I'm proposing to make the clone shallow so we only get the last versions of all the files in the repository.

It's possible to unshallow later if required by a future unimplemented operation.

nigels-com commented 9 months ago

Sure thing!

geffrak commented 9 months ago

Hey thanks @nigels-com! The last tag/release is two years old, would it be possible to have a new one?

nigels-com commented 9 months ago

That's a bit daunting, it's been a while indeed. I'll give it a go.