Pretty much this: https://github.com/dagger/dagger/blob/40dba8d312c76caed679a9ba952048c52c96a259/core/git.go#L789-L794 Problems: - **Bad caching**. If a submodule A is already in the cache as repo A, we won't actually clone after that. - **Weird auth**. See https://github.com/dagger/dagger/pull/10855#discussion_r2266427963. We should be able to configure auth for submodules. - **Inflexible**. While we can configure the `--depth` of a clone, we can't do this for submodules - we always go to `--depth=1`. We should fix all the above with a better API... proposals welcome 😢
Activity
fix(core/git): inject http.extraheader via env so submodules inherit …
fix(core/git): inject http.extraheader via env so submodules inherit …
fix(core/git): inject http.extraheader via env so submodules inherit …
fix(core/git): inject http.extraheader via env so submodules inherit …
fix(core/git): inject http.extraheader via env so submodules inherit …
fix(core/git): inject http.extraheader via env so submodules inherit …
fix(core/git): ensure HTTP auth is propagated to submodules (#10855)