fix(wasi-nn): disable shallow clone for BitNet dependency#4638
Merged
hydai merged 2 commits intoWasmEdge:masterfrom Feb 10, 2026
Merged
fix(wasi-nn): disable shallow clone for BitNet dependency#4638hydai merged 2 commits intoWasmEdge:masterfrom
hydai merged 2 commits intoWasmEdge:masterfrom
Conversation
70ab8fb to
b540226
Compare
Signed-off-by: Piyush kumar <piyush1304kumar@gmail.com>
b540226 to
ce73498
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4638 +/- ##
=======================================
Coverage 80.97% 80.98%
=======================================
Files 300 300
Lines 40633 40632 -1
Branches 6720 6719 -1
=======================================
+ Hits 32901 32904 +3
+ Misses 5930 5928 -2
+ Partials 1802 1800 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes a build failure in the WASI-NN BitNet backend caused by the
FetchContentconfiguration.The Issue
The build was failing with the error:
fatal: invalid reference: 404980eThis occurred because
cmake/WASINNDeps.cmakecombinedGIT_SHALLOW TRUE(depth 1) with a specific, older commit hash (404980e). Since the upstreammicrosoft/BitNetrepository has moved forward significantly (the HEAD is now several months ahead of404980e), the required commit is no longer present in a shallow clone of the default branch.The Fix
I have disabled the shallow clone for the BitNet dependency (
GIT_SHALLOW FALSE). This ensures the full history is fetched so that the specific commit404980ecan be successfully checked out during the build configuration.Related Issues
Fixes #4635