pre-commit: No such file or directory: '/github/home/.cache/pre-commit/repo4mrvfeou/rbenv-system/.install_state_v1staging'
search you tried in the issue tracker
Found this one #1658
describe your issue
Running pre-commit GitHub action in a custom container.
Workflow is broken:
[INFO] Installing environment for https://github.com/markdownlint/markdownlint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: FileNotFoundError: [Errno 2] No such file or directory: '/github/home/.cache/pre-commit/repo4mrvfeou/rbenv-system/.install_state_v1staging'
pre-commit --version
pre-commit 2.20.0
.pre-commit-config.yaml
---
ci:
skip: [terraform_fmt, terraform_validate, terragrunt_validate]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- id: check-docstring-first
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: no-commit-to-branch
args:
- "--branch"
- "main"
- id: check-symlinks
- id: detect-private-key
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: check-json
- repo: https://github.com/markdownlint/markdownlint
rev: v0.12.0
hooks:
- id: markdownlint
additional_dependencies: [rake]
- repo: https://github.com/maxbrunet/pre-commit-renovate
rev: 34.157.1
hooks:
- id: renovate-config-validator
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.1
hooks:
- id: terraform_providers_lock
args:
- --tf-init-args=-upgrade
- id: terraform_fmt
- id: terraform_validate
- id: terragrunt_validate
~/.cache/pre-commit/pre-commit.log (if present)
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 33 (25 by maintainers)
Commits related to this issue
- Force gem installation into envdir RubyGems allows OS packagers to specify defaults for `--install-dir` and `--bindir` and these take precedence over `GEM_HOME`. The only way to override the defaults... — committed to jaysoffian/pre-commit by jaysoffian a year ago
- Force gem installation into envdir RubyGems allows OS packagers to specify defaults for `--install-dir` and `--bindir` and these take precedence over `GEM_HOME`. The only way to override the defaults... — committed to jaysoffian/pre-commit by jaysoffian a year ago
- Force gem installation into envdir RubyGems allows OS packagers to specify defaults for `--install-dir` and `--bindir` and these take precedence over `GEM_HOME`. The only way to override the defaults... — committed to saravankrish/pre-commit by jaysoffian a year ago
if your company wants paid support I’m happy to provide it – but this seems like you’ve already got several solutions which don’t involve that container