Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: failed to prune cache "assets" #5745

Open
rahilwazir opened this issue Mar 9, 2019 · 12 comments

Comments

Projects
None yet
4 participants
@rahilwazir
Copy link

commented Mar 9, 2019

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

@bep

This comment has been minimized.

Copy link
Member

commented Mar 9, 2019

Pretty sure this is the same as #5673

@rahilwazir

This comment has been minimized.

Copy link
Author

commented Mar 9, 2019

I'm not sure but to give you more detail..

Terminal
terminal

File Tree

sidebar

There are two nested js and scss directories, Is it intentional?

Let me know if it still the same as #5673

@neslinesli93

This comment has been minimized.

Copy link

commented Apr 2, 2019

@rahilwazir did you find the bug?

@rahilwazir

This comment has been minimized.

Copy link
Author

commented Apr 2, 2019

Nah man, I changed my theme and it worked out for me. Are you using the theme?

@neslinesli93

This comment has been minimized.

Copy link

commented Apr 2, 2019

Yep, however I went and used hello-friend, and it works like a charm. I'd like to use this one because the defaults look way better...

@neslinesli93

This comment has been minimized.

Copy link

commented Apr 3, 2019

Unfortunately we can't open issues on hello-friend-ng repo, so I'm pinging @rhazdon and hope he sees it

@rhazdon

This comment has been minimized.

Copy link

commented Apr 3, 2019

@neslinesli93, thanks for pinging. I will take a look at it. I've also enabled the issue tracker for the repo...

@neslinesli93

This comment has been minimized.

Copy link

commented Apr 3, 2019

Thanks man, I was sending you an email regarding the issue, but thankfully you enabled issues...

@rhazdon

This comment has been minimized.

Copy link

commented Apr 3, 2019

@neslinesli93, @rahilwazir

I checked the issue and found the problem. The "bug" is the resources folder in the theme itself. Usually, you don't need this folder, so feel free and delete it. Then it should work as expected.

Hugo asked me to add the folder to the repo gohugoio/hugoThemes#577 (comment), because hello-friend-ng uses the Hugo asset pipelines instead of webpack (or similar tools). That means that your assets are genreated completly fresh when you compile your project.
Netlify had some issues with this pipeline stuff... I don't know if it is already fixed.

@neslinesli93

This comment has been minimized.

Copy link

commented Apr 3, 2019

How can we do this by keeping your theme as a submodule?

@rhazdon

This comment has been minimized.

Copy link

commented Apr 3, 2019

@digitalcraftsman, do you know maybe, if the issue regarding the hugo asset pipeline and the theme page (Netlify) is solved?

@rhazdon

This comment has been minimized.

Copy link

commented Apr 15, 2019

@digitalcraftsman Sorry for tagging you again. Are there any news regarding Netlify? Is it possible to delete the resources folder from the repo without crashing the example pages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.