docsy-example icon indicating copy to clipboard operation
docsy-example copied to clipboard

Resource permissions are set to read-only

Open chalin opened this issue 1 year ago • 3 comments

When I build using Hugo modules certain files, under public are set to read only. And so when I rebuild, I get errors like:

$ npm run build
...
> [email protected] _hugo
> hugo --cleanDestinationDir --themesDir ../.. -e dev -DFE

Start building sites … 
hugo v0.113.0-085c1b3d614e23d218ebf9daad909deaa2390c9a+extended darwin/amd64 BuildDate=2023-06-05T15:04:51Z VendorInfo=gohugoio
Total in 82 ms
Error: error copying static files: open /Users/chalin/git/lf/docsy/docsy-example/public/js/tabpane-persist.js: permission denied

I don't face this problem when building using non-Hugo Modules. Any idea why this is happening @deining?

/cc @LisaFC @geriom

chalin avatar Jun 09 '23 23:06 chalin

@deining, I'm still hitting this problem:

$ npm run local -- build
...
Total in 145 ms
Error: error copying static files: open /Users/chalin/git/lf/docsy/docsy-example/public/webfonts/fa-brands-400.ttf: permission denied

Any idea why? I'm not seeing this behavior when Docsy is used via a submodule.

chalin avatar Nov 10 '23 10:11 chalin

Having the same behaviour now after upgrading Hugo and Docsy.

Start building sites … 
hugo v0.123.8-5fed9c591b694f314e5939548e11cc3dcb79a79c+extended darwin/arm64 BuildDate=2024-03-07T13:14:42Z VendorInfo=gohugoio

Total in 11766 ms
Error: error copying static files: open /Users/x/dev/docs/public/webfonts/fa-solid-900.ttf: permission denied

jmichelgarcia avatar Mar 13 '24 16:03 jmichelgarcia

This solved my problem (more of a workaround I'm guessing) - https://discourse.gohugo.io/t/hugo-0-123-0-broke-local-development-for-us-but-theres-a-fix/48537

jmichelgarcia avatar Mar 13 '24 16:03 jmichelgarcia