hugo: Error: failed to prune cache "assets"
I’m using the following theme: https://github.com/rhazdon/hugo-theme-hello-friend-ng.git
And when I try to deploy it on Netlify, I face the following error.
> hugo --gc --minify
Total in 27 ms
Error: failed to prune cache "assets": remove /home/x/x/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.content: no such file or directory
This also happens on my local machine.
Hugo Static Site Generator v0.54.0/extended linux/amd64 BuildDate: 2019-02-01T13:31:26Z
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 17 (1 by maintainers)
Links to this issue
Commits related to this issue
- purge resources #gohugoio/hugo#5745 — committed to onweru/hugo-swift-theme by deleted user 5 years ago
For me force removing
_gen
folders before runnning hugo works fine, and build is ok on netlifyIn my
netlify.toml
:command = "find . -name _gen -exec rm -rf {} + ; hugo --gc --minify"
Hope this helps
Reasonable workaround. Thanks.
The Hermit theme has the same problem (as @kimfucious and I have reported here). @Track3
How can we do this by keeping your theme as a submodule?
I’m not sure but to give you more detail…
Terminal
File Tree
There are two nested
js
andscss
directories, Is it intentional?Let me know if it still the same as #5673