Open jamesbraza opened 1 month ago
Get the same thing on rev 38.120.1 and 38.124.2 with pre-commit 3.8.0 and 4.0.1.
Running an ubuntu 24.04 LTS image in WSL2.
And this was all working fine a couple of days ago (albeit probably a slightly older rev).
Same here... No idea what's going on
Happen on WSL2 but also when running precommit on Jenkins CI.
npm error path /home/****/.cache/pre-commit/repob_i34tjc/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes
npm error errno -2
npm error enoent ENOENT: no such file or directory, lstat '/home/****/.cache/pre-commit/repob_i34tjc/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes'
npm error enoent This is related to npm not being able to find a file.
Tested rev: 38.120.1 and rev: 38.122.0
Same for me.
Linux Ubuntu 20.04, pre-commit 2.21.0 and 3.5.0. renovatebot 38.124.1.
I had to use pre-commit run
to trigger this failure.
Looking at logs
24 verbose os Linux 5.15.133.1-microsoft-standard-WSL2
25 verbose node v23.0.0
26 verbose npm v10.9.0
27 verbose exit -2
Could it be related to recent Node 23 ? Where is it defined ? renovate ? precommit ?
Temporary workarround
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 38.120.1
hooks:
- id: renovate-config-validator
language_version: 20.18.0
An alternate workaround I rolled yesterday was moving from pre-commit
to the GitHub Action https://github.com/suzuki-shunsuke/github-action-renovate-config-validator. My thinking is that one doesn't need to revalidate a Renovate config every commit (as the config is static for 99.9% of commits).
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.0
Ok... I had node v18.19.1 installed and was getting this error. I updated node to v23.0.0 and stopped getting this error.
Though now the Installing environment for https://github.com/renovatebot/pre-commit-hooks.
step takes a ridiculously long time
im having similiar issue on ubuntu 22.04, notice that it always cuts a letter
*/repo******/MISSING_FIRST_LETTER/*
in the provided log:
npm error enoent ENOENT: no such file or directory, lstat '/Users/user/.cache/pre-commit/repou0t83qeh/ode_env-default/lib/node_modules/npm/node_modules/sprintf-js/dist/.gitattributes'
cuts n
from ode_env-default
there's nothing we maintainer can do here, we don't use this, so it needs a community fix.
Perhaps it is a pre-commit or nodeenv issue?
With this
pre-commit-config.yaml
:When installing
pre-commit
withpre-commit==4.0.1
, a coworker of mine is getting this error:Any ideas what went wrong here? I think Renovate should at least nice-ify the failure message hit