I’m not using a netlify.toml - I am however setting the HUGO_VERSION in the env vars to 0.42. Interestingly the same error occurred when I went up to 0.49.2 - its really random. Kind of good to know I’m the only one… I’m thinking its something other than hugo doing this. I’ll keep digging.
I’ll be honest… It’s not your standard site. A working version is here: https://servicefinder.acecentre.net I’m really not thinking this is a standard bug - more something we have created!
This is the build command
git submodule update --init --recursive && cd res/scripts && npm install && node ./fetch-ccg-geodata.js && cd ../../themes/hugo-acecentre-theme/ && npm install && npm install bower && ./node_modules/.bin/bower install && ./node_modules/.bin/gulp build-prod && cd ../../ && hugo
The above is by definition a bug in Hugo (or somewhere in Go). But it can be hard to identify/fix. As I have not seen this in a live site for years, and you say this happens with the latest Hugo, I suspect you must do “something special”. But it’s still a bug.
Can you post the full stack trace? I.e. is it more after “10:14:04 AM: reflect.mapiternext(0xc420d6d860)”?
I’m pretty sure that it’s the .Scratch.Get "rawdata" that is the problem. Pulling in data from other pages via Scratch just does not work in a concurrent context.
I did post a PR for this issue within nhs-service-finder hugo site. The problem was writing in the same key of a specific Scratch instance within loop of Pages. And the solution was to use a different name for each Page.
This issue may not be resolved with this change. Though i didn’t see it after the change.
Hi @AlanBreck
This topic is three years old and many things have changed since. Please have a read about Requesting Help and then start a new topic describing your issue.