Ionic Pro with git submodule


#1

Hi all,

The Ionic team indicated that git submodules are now supported in Ionic Pro. However, I could not find any documentation to set this up. I host my git repos on BitBucket and get the following error:

Submodule 'src/common' registered for path 'src/common'
Cloning into 'src/common'...
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

How can I setup the ssh keys so that Ionic Pro can access this submodule?


#2

I have the exact same issue, did you ever figure out how to get submodules to connect?


#3

@squadle From Ionic support I received the following reply:

Unfortunately we don’t yet offer support for private repos. A public version of your bitbucket repo should work but not if any authentication is required.


#4

I worked around this by using a git subtree instead of a submodule.

https://newfivefour.com/git-subtree-tutorial.html
http://manpages.ubuntu.com/manpages/bionic/man1/git-subtree.1.html


#5

Are there plans for allowing private git submodules in Ionic deploy? What if we embedded the username/password in the submodule reference like Heroku does? Is there a planned date for this?


Ionic Pro - Package Build fails due to git submodule
#6

Hey, any solution yet? I have the same problem, my private main repo with a git submodule (in my private Gitlab). I think it could be great if we can have the public key injected in the build runner in order to add it in Gitlab or private github as deployement key.


#7

I also switched from using a sub-module and went with a sub-tree and it works now.