Skip to content

armgit / LEANN

Public Imported from GitHub
0

[MLsys2026 Best Paper]: https://arxiv.org/abs/2506.08276. RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device.

fix: handle git dubious ownership error in manylinux containers

Andy Lee5c836ad08ea2
diff --git a/.github/workflows/build-reusable.yml b/.github/workflows/build-reusable.yml
index 9ecada2..36ecd06 100644
--- a/.github/workflows/build-reusable.yml
+++ b/.github/workflows/build-reusable.yml
@@ -58,6 +58,12 @@ jobs:
# Install git if not available
yum install -y git || true
+ # Configure git to handle the directory ownership issue
+ git config --global --add safe.directory ${GITHUB_WORKSPACE}
+ git config --global --add safe.directory /__w/LEANN/LEANN
+ git config --global --add safe.directory /github/workspace
+ git config --global --add safe.directory $(pwd)
+
# Clone the repository manually in the container
git init
git remote add origin https://github.com/${GITHUB_REPOSITORY}.git