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

Resource permissions are set to read-only #217

Open
chalin opened this issue Jun 9, 2023 · 3 comments
Open

Resource permissions are set to read-only #217

chalin opened this issue Jun 9, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@chalin
Copy link
Collaborator

chalin commented Jun 9, 2023

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 chalin added the bug Something isn't working label Jun 9, 2023
@chalin
Copy link
Collaborator Author

chalin commented Nov 10, 2023

@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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants