google / docsy-example

An example documentation site using the Docsy Hugo theme
https://docsy.dev
Apache License 2.0
472 stars 686 forks source link

Resource permissions are set to read-only #217

Open chalin opened 1 year ago

chalin commented 1 year ago

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
...
> docsy-example-site@0.7.0-dev.0-unreleased _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 commented 1 year ago

@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.

jmichelgarcia commented 8 months ago

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 commented 8 months ago

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