Skip to content

Use 'terraform fmt -check' instead of manually checking diff #24

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

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

choznerol
Copy link

@choznerol choznerol commented Mar 19, 2022

First, thanks for creating this repo. I've learned a lot from it!

Because we use this repo as a starting template for our own project, I think it might be helpful to upstream this small tweak back to this repo.

-check - Check if the input is formatted. Exit status will be 0 if all input is properly formatted and non-zero otherwise.
-recursive - Also process files in subdirectories. By default, only the given directory (or current directory) is processed.
https://www.terraform.io/cli/commands/fmt#usage

> check - Check if the input is formatted. Exit status will be 0 if all input is properly formatted and non-zero otherwise.
> recursive - Also process files in subdirectories. By default, only the given directory (or current directory) is processed.
> https://www.terraform.io/cli/commands/fmt#usage
This change was introduced in 0.12:

> Interpolation-only expressions are deprecated: an expression like "${foo}" should be rewritten as just foo.
> https://github.com/hashicorp/terraform/blob/v0.12/CHANGELOG.md#01214-november-13-2019
@choznerol choznerol force-pushed the ci/use-terraform-fmt-check branch from 332cb88 to b4fb4d0 Compare March 19, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant