Locally the hugo command works, but on github pages i get this error
hugo version
hugo \
--gc \
--minify \
--config ./config/_default/hugo.toml \
--baseURL "https://gitorko.github.io/"
--verbose
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
HUGO_VERSION: 0.125.4
GITHUB_PAGES: true
HUGO_CACHEDIR: /home/runner/work/_temp/hugo_cache
HUGO_ENVIRONMENT: production
TZ: America/Los_Angeles
hugo v0.125.4-cc3574ef4f41fccbe88d9443ed066eb10867ada2+extended linux/amd64 BuildDate=2024-04-25T13:27:26Z VendorInfo=gohugoio
Start building sites …
hugo v0.125.4-cc3574ef4f41fccbe88d9443ed066eb10867ada2+extended linux/amd64 BuildDate=2024-04-25T13:27:26Z VendorInfo=gohugoio
ERROR Unable to get remote resource.
Total in 15841 ms
Error: error building site: logged 1 error(s)
Error: Process completed with exit code 1.
You’re using resources.GetRemote in your ghcode short code. Where you do not log the $file parameter when an error occurs, but only the error itself. That’s not helpful to figure out where your GetRemote call might fail. And the error message that you see when deploying seems to come verbatim from that short code.
Or from markcode.md, which utters the same string and uses the same not very useful errorf call. If you’d instead do {{errorf "Unable to get remote resource '%s' $file}}, you’d immediately see which resource fails.
I was able to get it working. Few of the files had changed path and hence it was unable to fetch. After adding the file name was able to find it and fix it.
Thanks a ton