I add the same issue. But actually this depends on the template. Works with ananke but not with hugofresh for instance. So I guess this is a compatibility issue.
(just following the getting started allows to reproduce)
Using pre-built binary from hugo_0.52_Windows-64bit.zip
Running via Powershell, error message received was:
Error: failed to create file caches from configuration: file exists
Using pre-built binary from hugo_0.52_Linux-64bit.tar.gz
Running via Linux Subsystem for Windows, error message received was:
Building sites … ERROR 2018/12/11 17:44:41 error: failed to transform resource: TOCSS: failed to transform “style.coder.css” (text/x-scss): this feature is not available in your current Hugo version
Total in 10 ms
Error: Error building site: logged 1 error(s)
Using pre-built binary from hugo_extended_0.52_Windows-64bit.zip
Running via Powershell, error message received was:
Error: failed to create file caches from configuration: file exists
Using pre-built binary from hugo_extended_0.52_Linux-64bit.tar.gz
Running via Linux Subsystem for Windows, succeeded.
If someone can point me to a “site that fails” with the Hugo source code ready to build, I will have a look at it. These “my site fails with this theme, but works with that” is not something that I can work with.
Hi @bep, if you can PM me a GitLab account ID - I’m happy to add you to my private repo which would enable you to see the issue hopefully.
I accept that this might be a theme issue, I am using my own theme which is publicly available here:
My site builds fine with v0.51 on Netlify …
Drat!! I’ve just re-run using:
> C:/src/Hugo/bin/hugo version
Hugo Static Site Generator v0.52/extended windows/amd64 BuildDate: unknown
and it worked fine this time!
I’ve no idea what has happened. I have had some Windows updates but the only thing I’ve changed on my site since last time was the netlify.toml file, adding some handy shortcut redirects. That has been pushed to the repo a few times.
Let me try bumping the version in Netlify … Yes, inevitably it worked just fine.
You are still welcome to try my repo but it looks like some other interaction is causing the issue.