rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.97k stars 321 forks source link

Reduce grpc clone size with shallow clone #361

Closed lyu closed 3 years ago

lyu commented 3 years ago

Describe the bug Accessing GitHub is very slow at my location and so cloning the grpc submodule takes very very long.

To Reproduce Build Bear and wait for 30+ minutes, because it clones the full commit history of a grpc release branch.

Expected Behavior & Suggested Solution Only clone the last commit/HEAD of a branch of grpc, using GIT_SHALLOW 1 as described here. This reduces the clone size from 354M to 75M.

rizsotto commented 3 years ago

Thanks for the tip @lyu !

I've made the fix on latest master branch. Will be available for the next release.