Closed pulumi-bot closed 7 months ago
Looks like the progress dots PR triggered this.
Seems like a retry has fixed this. No idea why the pre-commit hook would fail like this:
$ /home/runner/work/actions/actions/node_modules/.bin/lint-staged
/home/runner/work/actions/actions/node_modules/string-width/index.js:2
const stripAnsi = require('strip-ansi');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/actions/actions/node_modules/strip-ansi/index.js from /home/runner/work/actions/actions/node_modules/string-width/index.js not supported.
Instead change the require of /home/runner/work/actions/actions/node_modules/strip-ansi/index.js in /home/runner/work/actions/actions/node_modules/string-width/index.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/home/runner/work/actions/actions/node_modules/string-width/index.js:2:19) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v20.11.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
husky - pre-commit hook exited with code 1 (error)
Error: Invalid status code: 1
at ChildProcess.<anonymous> (/home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v5/index.js:17:19)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
code: 1
}
Error: Invalid status code: 1
at ChildProcess.<anonymous> (/home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v5/index.js:17:19)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)
According to https://github.com/nkowaokwu/igbo_api/issues/626 this should be fixed in husky versions newer than 7, and we have 8.0.3 as minimum.
Upgrading lint-staged
also seems to have helped someone, so I'm gonna create a PR to do that: https://stackoverflow.com/questions/69960974/error-err-require-esm-husky-lint-staged-eslint-nodejs
Workflow Failure
Update dist files has failed. See the list of failures below: