go-coffeeshop
go-coffeeshop copied to clipboard
Permission denied for cache folder
Hi, i got an error when using dev container to open the project.
did i missing step or something ?
what i do :
- create folder manually
- set permission
- reopen with dev container This solve the issue
I think the main reason is at https://github.com/thangchung/go-coffeeshop/blob/main/.devcontainer/devcontainer.json#L14
It runs as vscode
user, but the code actually needs root
to resolve pkg.
At the moment, we can sudo su
into root
user, then run go mod tidy
, then it works normally.
I will fix this issue soon. Thanks for the finding
Thanks for the Feedback.
Fixed in the latest version in the main branch at https://github.com/thangchung/go-coffeeshop/commit/22d33190a0cf81630878e47bafae2de7c0abb783. Feel free to re-open it if there are still things else to fix.