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

Precommit does not work on linux #9

Open
krichardsson opened this issue Mar 8, 2017 · 1 comment
Open

Precommit does not work on linux #9

krichardsson opened this issue Mar 8, 2017 · 1 comment
Labels

Comments

@krichardsson
Copy link
Contributor

Some of our python projects use precommit to run a set of static code analyses tools. When running precommit from the bitcraze/toolbelt on linux there is a problem related to users.
On linux the builder docker container is running as the current user (as opposed to root on Mac and Win) to make files created by the build owned by the correct user. The problem with precommit is that it tries to read data related to the current user and that user does not exist in the docker container.

@krichardsson
Copy link
Contributor Author

A workaround is to use sudo when running the toolbelt since this will make the toolbelt start the builder as root. This workaround is only necessary when running tools that use precommit, other tools in the belt can be executed without sudo.

@knmcguire knmcguire added the bug label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants