From be52a7205629205f5660e905a0d6b93029223084 Mon Sep 17 00:00:00 2001 From: Gyeongjun Paik Date: Tue, 26 Jul 2022 20:29:00 +0900 Subject: [PATCH] Update README.md fix yaml syntax --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c35a73854..175f4fd06 100644 --- a/README.md +++ b/README.md @@ -677,7 +677,7 @@ Example: This is a [known issue](https://github.com/hashicorp/terraform/issues/28490) with Terraform and how providers are initialized in Terraform 0.15 and later. To work around this you can add an `exclude` parameter to the configuration of `terraform_validate` hook like this: ```yaml - id: terraform_validate - exclude: [^/]+$ + exclude: '[^/]+$' ``` This will exclude the root directory from being processed by this hook. Then add a subdirectory like "examples" or "tests" and put an example implementation in place that defines the providers with the proper aliases, and this will give you validation of your module through the example. If instead you are using this with multiple modules in one repository you'll want to set the path prefix in the regular expression, such as `exclude: modules/offendingmodule/[^/]+$`.