Skip to content

Commit 07425de

Browse files
committed
Debug: Add verification of submodule contents before committing
Added checks to verify that submodule directories actually contain files before attempting to commit and push them. This will help diagnose why the directories appear empty in the final package.
1 parent 4c6cad8 commit 07425de

1 file changed

Lines changed: 24 additions & 3 deletions

File tree

.github/workflows/install_github.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,35 @@ jobs:
7171
# Configure git
7272
git config user.name "github-actions[bot]"
7373
git config user.email "github-actions[bot]@users.noreply.github.com"
74-
# Remove .gitmodules and .git directories in submodules to make them regular directories
74+
75+
# Verify submodules have content
76+
echo "Checking submodule contents..."
77+
ls -la src/libK/ | head -20
78+
ls -la src/slapack/ | head -20
79+
80+
# Remove .git directories in submodules to make them regular directories
81+
find src/libK -name ".git" -exec rm -rf {} + 2>/dev/null || true
82+
find src/slapack -name ".git" -exec rm -rf {} + 2>/dev/null || true
83+
84+
# Remove .gitmodules
7585
rm -f .gitmodules
76-
rm -rf src/libK/.git src/slapack/.git
86+
7787
# Stage all submodule contents as regular files
7888
git add -f src/libK src/slapack
89+
90+
# Show what will be committed
91+
echo "Files to be committed:"
92+
git status
93+
7994
# Commit to a temporary local branch
8095
git checkout -b temp-with-submodules
81-
git commit -m "CI: Temporary commit with submodules as regular files for install_github test" || echo "Nothing to commit"
96+
git commit -m "CI: Temporary commit with submodules as regular files for install_github test"
97+
98+
# Verify the commit has the files
99+
echo "Verifying commit contents..."
100+
git ls-tree -r --name-only HEAD | grep "src/libK" | head -10
101+
git ls-tree -r --name-only HEAD | grep "src/slapack" | head -10
102+
82103
# Push to a temporary branch on GitHub
83104
git push -f origin temp-with-submodules
84105

0 commit comments

Comments
 (0)