Hugo theme edits show local but on Netlify, it shows default theme without changes


I am new to netlify and hugo so bare with me. I have created a new project using hugo theme and deploying with netlify. I installed the git add submodule theme and made the edits that I am happy with and on my local it shows my changes. But when I push to github and get it deployed, it is just the raw theme with nothing edited. On github, when I go to the submodule, it shows that it is there but I cannot click on it.

hey there, as a sanity check, are you sure it is getting deployed correctly? :thinking:

i would verify that first.

Yes I believe so.

thanks for sharing that - but i guess what i am asking is whether or not you are seeing any build errors while you are deploying. is it possible it isn’t getting updated as it errors out?

I don’t believe so. Below is a log of the latest deploy.

2:46:07 PM: Build ready to start
2:46:09 PM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
2:46:09 PM: build-image tag: v3.3.7
2:46:09 PM: buildbot version: d305548225ac57bb00eb5a596b0b8674e76a4681
2:46:09 PM: Fetching cached dependencies
2:46:09 PM: Starting to download cache of 144.5MB
2:46:10 PM: Finished downloading cache in 809.542312ms
2:46:10 PM: Starting to extract cache
2:46:15 PM: Finished extracting cache in 5.217491008s
2:46:15 PM: Finished fetching cache in 6.076697318s
2:46:15 PM: Starting to prepare the repo for build
2:46:15 PM: Preparing Git Reference refs/heads/master
2:46:16 PM: Found Netlify configuration file netlify.toml in site root
2:46:16 PM: Found Netlify configuration file(s). Overriding site configuration
2:46:16 PM: Different build command detected, going to use the one specified in the Netlify configuration file: ‘hugo --gc --minify’ versus ‘hugo’ in the Netlify UI
2:46:16 PM: Starting build script
2:46:17 PM: Installing dependencies
2:46:17 PM: Started restoring cached node version
2:46:22 PM: Finished restoring cached node version
2:46:23 PM: v10.20.1 is already installed.
2:46:23 PM: Now using node v10.20.1 (npm v6.14.4)
2:46:24 PM: Attempting ruby version 2.6.2, read from environment
2:46:25 PM: Using ruby version 2.6.2
2:46:25 PM: Using PHP version 5.6
2:46:25 PM: Installing Hugo 0.69.2
2:46:25 PM: Hugo Static Site Generator v0.69.2-EC9DCF30/extended linux/amd64 BuildDate: 2020-04-24T07:57:53Z
2:46:25 PM: Started restoring cached go cache
2:46:25 PM: Finished restoring cached go cache
2:46:25 PM: unset GOOS;
2:46:25 PM: unset GOARCH;
2:46:25 PM: export GOROOT=’/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;
2:46:25 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
2:46:25 PM: go version >&2;
2:46:25 PM: export GIMME_ENV=’/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;
2:46:25 PM: go version go1.12 linux/amd64
2:46:25 PM: Installing missing commands
2:46:25 PM: Verify run directory
2:46:25 PM: Executing user command: hugo --gc --minify
2:46:26 PM: Building sites …
2:46:26 PM: | EN
2:46:26 PM: -------------------±----
2:46:26 PM: Pages | 6
2:46:26 PM: Paginator pages | 0
2:46:26 PM: Non-page files | 0
2:46:26 PM: Static files | 47
2:46:26 PM: Processed images | 0
2:46:26 PM: Aliases | 0
2:46:26 PM: Sitemaps | 1
2:46:26 PM: Cleaned | 0
2:46:26 PM: Total in 46 ms
2:46:26 PM: Skipping functions preparation step: no functions directory set
2:46:26 PM: Caching artifacts
2:46:26 PM: Started saving pip cache
2:46:26 PM: Finished saving pip cache
2:46:26 PM: Started saving emacs cask dependencies
2:46:26 PM: Finished saving emacs cask dependencies
2:46:26 PM: Started saving maven dependencies
2:46:26 PM: Finished saving maven dependencies
2:46:26 PM: Started saving boot dependencies
2:46:26 PM: Finished saving boot dependencies
2:46:26 PM: Started saving go dependencies
2:46:26 PM: Finished saving go dependencies
2:46:26 PM: Build script success
2:46:26 PM: Starting to deploy site from ‘public’
2:46:26 PM: Creating deploy tree
2:46:26 PM: Creating deploy upload records
2:46:26 PM: 0 new files to upload
2:46:26 PM: 0 new functions to upload
2:46:26 PM: Starting post processing
2:46:27 PM: Post processing done
2:46:27 PM: Site is live
2:46:50 PM: Finished processing build request in 41.385934107s

yep, seems like it is building without errors! well, thats a good sign.

do you have some specific points in the code where it is obvious that the changes you are seeing are not showing up?

Yes. On the deploy, it shows the default theme as you would if you deployed it without making any changes. I have made many changes to the theme and it looks way different on my local machine. But when I deploy it, per the link, its the default theme. I have tried to look at the submodule on my github but it seems like I can’t click it. To use the theme with Netlify, I had to git add submodule the hugo theme.

Seems you’ve changed your sitename since you wrote in - I don’t see . https://wizardly-borg-bd5fe4 as a valid sitename anymore so I’m a bit stuck on debugging without more details.

Could you share your site’s API ID (you can find it on the General Settings page), so we can best look up the repo cloning process in our internal logs to try to help figure out what is going wrong?