Can we have a canonical example of how git private submodules can be cloned in CircleCI?
I’ve tried overriding the clone with ‘–recursive’ and adding a post clone command to ‘git submodule init and update’. Both of these approaches have been tested with explicit deploy keys added to the SSH permissions and by adding a user checkout key for a user with access to the main and submodule repo.
It’s worth noting that the submodule is a fork.
We use an https:// git scheme, not a git:// one and I’ve tried all suggestions outlined in these posts:
The error returned is always:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.