Skip to content

Precommit does not work on linux #9

@krichardsson

Description

@krichardsson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions