Trying to build without CMake installed gives a confusing error message
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- cmake, powershell
- Domain
- build-system
Research direction
Start with build.libgit2.ps1 at line 71 and reproduce the build when cmake.exe is unavailable. Check how the empty result from Get-Command cmake.exe is handled, then run the script without CMake to verify it reports a clear, actionable error instead of an IndexOutOfRangeException.
Written by the indexing model from the issue text.
Description
Namely
.\build.libgit2.ps1 14
Index was outside the bounds of the array.
At C:\source\github.com\libgit2sharp\libgit2sharp.nativebinaries\build.libgit2.ps1:71 char:16
+ $cmake = @(Get-Command cmake.exe)[0] 2>$null
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], IndexOutOfRangeException
+ FullyQualifiedErrorId : System.IndexOutOfRangeException
which seems to come from @(Get-Command cmake.exe) returning an empty array.
- Dominant language
- PowerShell
- Stars
- 35
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libgit2/libgit2sharp.nativebinaries
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
libgit2/libgit2sharp.nativebinaries#158 · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
libgit2/libgit2sharp.nativebinaries#156 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
libgit2/libgit2sharp.nativebinaries#151 · 5 comments ·
All issues in libgit2/libgit2sharp.nativebinaries
Similar issues
-
Update to NCCL 2.32 Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
conda-forge/nccl-feedstock#166 ·
-
next-devel: s390x build fails — chccwdev/vmur/zkey missing from initramfs after s390utils 2.44 split Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
coreos/fedora-coreos-tracker#2228 ·
-
Python versions Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MunchLab/ceREEBerus#121 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
integration-meraki type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nautobot/nautobot-app-chatops#463 ·