wai-website.netlify.app uses quite a few submodules and the default checkout during triggered deploy often fails. A manual delete cache and deploy does work. Local Builds when I init the submodules never show that error.
To init the modules in a local build I submodule init and submodule update --remote
The default Netlify build git clone is obviously doing something like --recursive as the submodules are processed. But I have no visibility into that. And I can see no way to alter the clone options used
In addition, the actual options I would like to use to init and update all the submodules is only available in new git versions of clone.
So I’m guess I could be successful here if I can disable the default git clones broken submodule handling and add an git submodule update --init -remote to the build commend
One thought is that this build is not the only thing that might update the submodules. Another process runs occasionally. Could this cause a clash with the Netlify build caching? If so how to stop it?
If that doesn’t resolve the issue, please let us know. The “re-linking” instructions are just the change repo instructions but then re-linking the same repo instead of a different one. Those instructions can be found here: