#Cloning with submodules
1 messages · Page 1 of 1 (latest)
👋 the current git operation should recurse submodules:
https://play.dagger.cloud/playground/_uErlvMeTbk
Hmm, maybe there was something wrong on our side then as it seemed it didn't do that.
We are actually still in older version of Dagger. Maybe update will do.
Ah, we are running to some Authentication issues when doing that.
? can you provide more info please?
When we are cloning a repo (using git.Clone) and use a tokenized URL (https://git:<token>@...) we are getting authentication errors for the submodules. Not sure if this is more a feature of Git than a bug of Dagger?
oh! I see now. I'm almost sure it's not a Dagger bug.
is there a way you can use the sshAuthSocket to authenticate and use the git@ URL to clone instead of the https one?
Since basic auth is a bit more tricky to work as it requires modifying the git config credential store: https://stackoverflow.com/questions/68905174/recursively-clone-submodules-from-github-using-an-access-token
I have an umbrella repo containing a number of submodules. I am using
git clone --recurse-submodules --remote-submodules https://<access_token>@github.com/user/repo.git
to recursively clone ...