You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce amount of data downloaded from GitHub in resources/rebuild.sh
Use a tree-less git checkout [1], which reduces the amount of data
downloaded by ~60% (from >3GiB to ~1GiB currently) when cloneing the
upstream amazon linux repository from GitHub.
It will now download some stuff during checkout, but this is
significantly less than a full clone, as we're only checking out a
handful of tags.
We sadly cannot use a `--depth=1` checkout because we need access to all
tags, in chronological order, and for this, we need at least the commit
metadata itself fetched locally (even git ls-remote --tags will not sort
tags without first fetching these).
[1]: https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/
Signed-off-by: Patrick Roy <[email protected]>
0 commit comments