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

scripts: installation without sparse-checkout #425

Merged
merged 1 commit into from
Nov 6, 2022

Conversation

kvakil
Copy link
Contributor

@kvakil kvakil commented Oct 1, 2022

Old versions of Ubuntu (and likely other LTS distros) have git versions which do not support git-sparse-checkout. git-sparse-checkout is used as of #389.

Dynamically check if git sparse-checkout is supported, and if not then fallback to cloning the whole repo. Cloning the whole repo is slow, but at least it works.

I tested this patch on Ubuntu 18.04 without any lldb headers installed, and it worked successfully.

Old versions of Ubuntu (and likely other LTS distros) have `git`
versions which do not support `git-sparse-checkout`.
`git-sparse-checkout` is used as of nodejs#389.

Dynamically check if `git sparse-checkout` is supported, and if not then
fallback to cloning the whole repo. Cloning the whole repo is _slow_,
but at least it works.

I tested this patch on Ubuntu 18.04 without any lldb headers installed,
and it worked successfully.
@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2022

Codecov Report

Base: 73.65% // Head: 73.57% // Decreases project coverage by -0.08% ⚠️

Coverage data is based on head (05ba77a) compared to base (eb969e1).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #425      +/-   ##
==========================================
- Coverage   73.65%   73.57%   -0.09%     
==========================================
  Files          34       34              
  Lines        4995     4995              
==========================================
- Hits         3679     3675       -4     
- Misses       1316     1320       +4     
Impacted Files Coverage Δ
src/llnode_module.cc 87.79% <0.00%> (-0.59%) ⬇️
src/llv8.cc 71.23% <0.00%> (-0.40%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

'--filter=blob:none',
'--sparse',
'--branch', lldbHeadersBranch,
'https://github.com/llvm/llvm-project.git',
Copy link
Member

Choose a reason for hiding this comment

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

Maybe could we put that one into a variable ?

Copy link
Member

Choose a reason for hiding this comment

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

Hey @tony-go I'm looking to merge this.
Can you be a bit more specific with the point about the variable?
I'm not 100% on what your ask is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the ask is to put the Github URL into a variable. I don't feel particularly strongly about it; feel free to do it before merging if you'd like.

Copy link
Member

Choose a reason for hiding this comment

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

OK this has been around for a while with no updates.
@tony-go I'm also not strongly pushed about changing the implementation.
I'll merge this and please feel free to PR your suggested change if you want.

@No9 No9 merged commit de1f01d into nodejs:main Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants