Skip to content

setup.sh: populate empty gitlink placeholder dirs (fix CI, #74)#78

Merged
siddhss5 merged 1 commit into
mainfrom
fix-ci-populate-empty-gitlinks
Jun 4, 2026
Merged

setup.sh: populate empty gitlink placeholder dirs (fix CI, #74)#78
siddhss5 merged 1 commit into
mainfrom
fix-ci-populate-empty-gitlinks

Conversation

@siddhss5
Copy link
Copy Markdown
Collaborator

@siddhss5 siddhss5 commented Jun 4, 2026

Root cause (confirmed via CI probe)

Several siblings are tracked as gitlinks (submodule-style pointers) but the repo has no .gitmodules. So on a fresh CI checkout (actions/checkout with submodules: false), mj_viser, ada_assets, ada_mj, mj_manipulator_ros, … are left as empty placeholder directories.

setup.sh's [ ! -d "$dir" ] guard then saw the dir exists and printed "already present, skipping" — never cloning them. Empty dirs = broken uv workspace members → uv sync failed building geodude with "mj-viser is not a workspace member."

The uv [tool.uv.sources] were a red herring (they resolve fine once the member dirs are populated — verified locally).

Fix

Detect a populated repo by its .git entry rather than mere directory existence, and clone into the empty placeholder. One-line logic change.

Fixes #74. Verified on this PR's CI: if uv sync gets past the empty-member errors, the fix holds.

Several siblings are tracked as gitlinks without a .gitmodules, so a fresh
checkout (actions/checkout submodules:false) leaves them as empty placeholder
directories. The previous `[ ! -d ]` guard saw the dir and skipped cloning,
leaving empty uv workspace members -> 'mj-viser is not a workspace member' and
`uv sync` failing while building geodude. Detect a populated repo via its .git
entry and clone into the empty placeholder instead. Fixes #74.
@siddhss5 siddhss5 merged commit 6643943 into main Jun 4, 2026
2 of 4 checks passed
@siddhss5 siddhss5 deleted the fix-ci-populate-empty-gitlinks branch June 4, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integration CI: uv sync fails building geodude (mj-viser workspace source not resolved)

1 participant