I run Hugo on a Debian system via ssh like so
git pull ; hugo --cleanDestinationDir --minify
which just now gave me this error after having pulled the changes from Github:
Start building sites … hugo v0.84.1-4BD65E22+extended linux/amd64 BuildDate=2021-06-24T11:44:23Z VendorInfo=gohugoio Total in 105055 ms Error: Error building site: "/home/ck/source/content/photos/Verkehr in Asien/index.md:1:1": timed out initializing value. You may have a circular loop in a shortcode, or your site may have resources that take longer to build than the `timeout` limit in your Hugo config file.
Directly afterwards, I ran the script again without any error:
❯ ./deploy Bereits aktuell. Start building sites … hugo v0.84.1-4BD65E22+extended linux/amd64 BuildDate=2021-06-24T11:44:23Z VendorInfo=gohugoio | DE -------------------+------- Pages | 210 Paginator pages | 774 Non-page files | 1970 Static files | 20 Processed images | 8692 Aliases | 45 Sitemaps | 1 Cleaned | 0 Total in 7972 ms
Is that normal behaviour? I would have thought that running
hugo regenerates everything and should take approximately the same time everytime. This is what had been suggested to me before: