Building sites … ERROR 2018/11/04 16:20:42 error: failed to transform resource: open /home/zdorovo/Documents/web/hugosite/themes/academic/exampleSite/public/js/mathjax-config.500a6cbb2c0f345fcecc21b3116d[redacted].js: file name too long Total in 2473 ms Error: Error building site: logged 1 error(s)
A couple of things stand out about this as weird to me:
I don’t get any errors when I run the command hugo server
Moving the directory with my website doesn’t change things. Indeed, I moved it to get the (absolute) filename down to ~180 characters. I’m using ubuntu on an ext4 partition, so as far as I can tell, my max filename length should be 255 characters. I’m still getting the error message though
I’m using the academic theme. Any help would be greatly appreciated.
Here’s what I get when I type hugo env: Hugo Static Site Generator v0.50 linux/amd64 BuildDate: 2018-10-29T12:39:37Z GOOS="linux" GOARCH="amd64" GOVERSION="go1.11.1"
@zdorovo Academic creator here. If you update to the latest master version of Academic, it should now work for you. Although the underlying issue is related to the OS/filesystem, I have reduced the length of the MathJax JS filename by removing the long Sha512 asset fingerprinting. For more details, refer to the commit at https://github.com/gcushen/hugo-academic/commit/3ea332ca673005023353dc18c3b7dd3fd4d39fac