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

rm: cannot remove 'project_new/.pytest_cache/*': Permission denied #186

Open
hyzyla opened this issue May 1, 2020 · 2 comments
Open

rm: cannot remove 'project_new/.pytest_cache/*': Permission denied #186

hyzyla opened this issue May 1, 2020 · 2 comments

Comments

@hyzyla
Copy link

hyzyla commented May 1, 2020

After first run of command make test from 3 step in contribution guide, second run failed with a list of errors:

...
rm: cannot remove 'project_new/.pytest_cache/*': Permission denied
...
rm: cannot remove 'project_new/.mypy_cache/*': Permission denied
...

I'm on Linux, Ubuntu 18.04 and I think this issue is related to this issue moby/moby#3124

Also, this is not reproducible on MacOS

@Arfey
Copy link
Member

Arfey commented May 8, 2020

Hi 👋

This error connected only with linux. Docker create all files as a root user and when u try remove them u got current error.

I know some solution:

  • run all with sudo 😅
  • disable cache for pytest and mypy
mypy you_project --cache-dir=/dev/null
pytest -p no:cacheprovider

Please, text me back if any of these approaches has helped you

@Askully
Copy link

Askully commented Nov 6, 2022

Docker should be made to use a special docker user instead of creating files as root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants