Since first building the hugo website in Netlify I have been having persistent build fails.
Site name: https://martin-blog.netlify.app
PLEASE help us help you by writing a good post!
Log:
8:36:06 PM: Build ready to start
8:36:08 PM: build-image version: 9d79ad851d6eff3969322d6e5b1df3d597650c41
8:36:08 PM: build-image tag: v3.3.19
8:36:08 PM: buildbot version: 2cc7ea668a3e8f63326d15aab17e62cd1997fa2e
8:36:08 PM: Fetching cached dependencies
8:36:08 PM: Starting to download cache of 72.7MB
8:36:10 PM: Finished downloading cache in 1.968322099s
8:36:10 PM: Starting to extract cache
8:36:13 PM: Finished extracting cache in 2.892485236s
8:36:13 PM: Finished fetching cache in 4.889611816s
8:36:13 PM: Starting to prepare the repo for build
8:36:14 PM: Preparing Git Reference refs/heads/master
8:36:18 PM: Error checking out submodules: fatal: No url found for submodule path âthemes/mainroadâ in .gitmodules
8:36:18 PM: Failing build: Failed to prepare repo
8:36:18 PM: Failed during stage âpreparing repoâ: Error checking out submodules: fatal: No url found for submodule path âthemes/mainroadâ in .gitmodules
: exit status 128
8:36:18 PM: Finished processing build request in 9.863745883s
Not sure why .gitmodules is required and why isnât it added automatically however tried adding it under the theme folder and still wouldnât work. Used this as reference: https://git-scm.com/docs/gitmodules
[submodule âthemes/mainroadâ]
path = themes/mainroad
url = git://github.com/vimux/mainroad