Pre-commit can't execute `meteor:lint` hook when running as a user
When using pre-commit
as a non root user, we have the following error:
Lint meteor code.........................................................Failed
- hook id: meteor:lint
- exit code: 1
mkdir: cannot create directory '//.meteor-install-tmp': Permission denied
For non root users, pre-commit
use the docker --user
option to set the UID
and GID
but the $HOME
variable is set to /
by docker.
Unfortunately, meteor npm install
try to create the ${HOME}/.meteor-install-tmp
temporary directory which is impossible as non root with HOME=/
.