Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use partial clone for rbs collection installer #805

Merged

Conversation

pocke
Copy link
Member

@pocke pocke commented Sep 27, 2021

This PR avoids full cloning gem_rbs_collection repository by rbs collection install by using partial clone instead.

It will improve performance if gem_rbs_collection grows.

Note that partial clone was introduced in Git v2.27.0, and the release date is 2020-01-01.
https://github.com/git/git/blob/ddb1055343948e0d0bc81f8d20245f1ada6430a0/Documentation/RelNotes/2.27.0.txt#L175-L176
However, Ruby 2.6, the oldest supported Ruby by RBS, was released 2018-12-25.
I think we should support Git < v2.27.0 for now.

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pocke pocke merged commit 2718589 into ruby:master Sep 28, 2021
@pocke pocke deleted the Use_partial_clone_for_rbs_collection_installer branch September 28, 2021 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants