wMaN
wMaN

Reputation: 349

Travis build failed due to git submodule repository not found

I have an Android project with a main app (a git repo) and several modules (git repos cloned as submodule). Today it starts building fail due to submodule repository not found when it tried to build the newly PR code. Travis log looks like below

enter image description here

The main app clones fine, just submodules which failed to clone. I tried to rebuild commits that succeeded last week, but they start building fail too.

Upvotes: 3

Views: 884

Answers (1)

wMaN
wMaN

Reputation: 349

After hours of searching and trial, I found it's caused by a recent change of Travis

enter image description here The solution that works for me is go to each submodule's Travis' settings page and turn on "Allow files from this repository to be used in builds on other repositories".

enter image description here

After turning on all submodules, the building pass like it used to be.

Upvotes: 4

Related Questions