You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
"pre-commit run terraform-validate --all-files" command fails until I follow Remove the spurious CR characters steps to use sed to remove "The ^M is a carriage return character":
To Reproduce
Steps to reproduce the behavior including the relevant Terraform/Terragrunt/Packer version number and any code snippets and module inputs you used.
Install pre-commit in Mac OS or some linux flavor OS (Ubuntu, etc.) & create a .pre-commit-config.yaml as defined in Pre-commit README.md > General Usage
Run pre-commit run terraform-validate --all-files
See failures, now run sed -i -e 's/\r$//' /Users/arriaga/.cache/pre-commit/repo57cjvft5/hooks/terraform-validate.sh
Re-try pre-commit run terraform-validate --all-files and see how errors g oaway
Expected behavior
Maybe pre-commit hooks should avoid having the "^M" carriage return character?
Describe the bug
"pre-commit run terraform-validate --all-files" command fails until I follow Remove the spurious CR characters steps to use sed to remove "The ^M is a carriage return character":
To Reproduce
Steps to reproduce the behavior including the relevant Terraform/Terragrunt/Packer version number and any code snippets and module inputs you used.
.pre-commit-config.yaml
as defined in Pre-commit README.md > General Usagepre-commit run terraform-validate --all-files
sed -i -e 's/\r$//' /Users/arriaga/.cache/pre-commit/repo57cjvft5/hooks/terraform-validate.sh
pre-commit run terraform-validate --all-files
and see how errors g oawayExpected behavior
Maybe pre-commit hooks should avoid having the "^M" carriage return character?
Additional context
Tried to follow "Step 3 - Static Analysis" steps of Getting Started with Terraform on Azure: Testing blog article
The text was updated successfully, but these errors were encountered: