Skip to content

Conversation

@bjornrobertsson
Copy link

Add submodule cloning support via native Go implementation

Summary

This PR resolves/mitigates #74

Changes

Since the existing submodule support in git.go depends on execution of the git binary, this implementation circumvents that limitation by traversing the tree to clone submodules natively in Go.

Behavior

  • Functionality can be toggled via a parameter (ENVBUILDER_GIT_CLONE_SUBMODULES)
  • Only runs on initial workspace start
  • Does not repeat on subsequent starts (unless the repository is deleted)

Add support for initializing and updating git submodules during repository cloning.
Added GitCloneSubmodules option to support recursive submodule initialization.
Resolved issues with git submodule handling for better cloning and URL resolution.
Resolved issues with git submodule handling to ensure robust cloning and URL resolution without relying on git binary calls.
Adding tests for Submodules and two missing
@bjornrobertsson bjornrobertsson linked an issue Dec 11, 2025 that may be closed by this pull request
@bjornrobertsson
Copy link
Author

I have read the CLA Document and I hereby sign the CLA
recheck

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.

Git submodule support

1 participant