scripts: installation without sparse-checkout
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.
Codecov Report
Base: 73.65% // Head: 73.57% // Decreases project coverage by -0.08% :warning:
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%) |
:arrow_down: |
| src/llv8.cc | 71.23% <0.00%> (-0.40%) |
:arrow_down: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.