Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line 9: realpath: command not found and ./_common.sh: No such file or directory errors while running pre-commit #367

Closed
dnyaneshwar-sonawane opened this issue Apr 17, 2022 · 2 comments

Comments

@dnyaneshwar-sonawane
Copy link

Getting the following error while running

pre-commit run --all-files

/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_fmt.sh: line 11: ./_common.sh: No such file or directory

Terraform validate.......................................................Failed
- hook id: terraform_validate
- exit code: 1

/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_validate.sh: line 9: realpath: command not found
/Users/test/.cache/pre-commit/repo_sb6vhbg/hooks/terraform_validate.sh: line 11: ./_common.sh: No such file or directory

Terraform docs...........................................................Failed
- hook id: terraform_docs
- exit code: 1
@MaxymVlasov
Copy link
Collaborator

Install coreutils
https://github.com/antonbabenko/pre-commit-terraform#1-install-dependencies

@MaxymVlasov MaxymVlasov added area/macOS and removed bug Something isn't working labels Apr 17, 2022
@dnyaneshwar-sonawane
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants