Closed thisdwhitley closed 5 years ago
Actually...after I FINALLY got the hand of submodules...I see that Netlify recommends using subtrees instead of submodules damn.
If you have submodules that are in private repositories, or private node modules, or other Git repositories that you need separate access to — well, our build environment only has access to them in case you send the authentication raw materials our way somehow. In general we don’t advise this — for instance: use subtrees instead of submodules and create a copy of the private node modules before sending us a deploy.
https://www.netlify.com/blog/2016/10/18/how-our-build-bots-build-sites/
Git subtree: the alternative to Git submodule - for your reading pleasure...
Submodules will not work with Netlify. So I am going to abandon this. Here is how I removed submodules (which is harder than it should have been):
echo "" > .gitmodules
git add .gitmodules
sed -i '/\[submodule/,$d' .git/config
# careful here, worked for me since
"[submodule" was the last stanza in my configgit rm --cached themes
rm -vfr .git/modules/themes
git commit -m "Removed submodule beautifulhugo"
rm -vfr themes
The netlify build is failing: