Hello, I’m getting an inexplicable build error in my Hugo Academic site. This was triggered by a submodule change in Hugo Academic I believe.
Here are the details.
Domain and site name: research.bshor.com
Github repository: GitHub - bshor/website
Here’s the error:
3:09:43 PM: Failed during stage 'preparing repo': From https://github.com/bshor/website
* branch master -> FETCH_HEAD
325e39a..a55963c master -> origin/master
Fetching submodule themes/academic
fatal: remote error: upload-pack: not our ref d87b8ddce142ce3ac76b86bcf9106255c8c5ef10
Errors during submodule fetch:
: exit status 1
3:09:43 PM: Finished processing build request in 3.118s
Hiya @bshor ,
Sorry to say this is something in your code that will need a fix. We’ve seen it a half-dozen times over the years and never found a silver bullet for you to make the fix; but the article I have always pointed people to - and most did manage to make a fix using it - is this one:
Removing submodules entirely will also likely fix things if you want to do that instead - for hugo themes especially, you could always choose to clone into your repo and then remove the .git directory so you don’t track it explicitly; that’s what I do on my sites, to avoid the hassle of submodules and potentially debugging them.