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

Fix terragrunt parsing #409

Conversation

MatrixCrawler
Copy link
Collaborator

This will fix #401

  • removed diagnostic.hasError check as it is expected to have an error every time something is present that we are not looking explicitly for.
  • introduced test if a terraform_version_constraint can be found in hcl file.

…r every time something is present that we are not looking explicitly for.

* introduced test if a terraform_version_constraint can be found in hcl file.
Copy link
Owner

@warrensbox warrensbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this code and looks like everything is working as the issue pointed out.

@MatrixCrawler MatrixCrawler merged commit 6e0b171 into master Apr 26, 2024
3 checks passed
@MatrixCrawler MatrixCrawler deleted the 401-any-content-in-terragrunthcl-other-than-terraform_version_constraint-causes-tfswitch-to-error branch April 26, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Any content in terragrunt.hcl other than "terraform_version_constraint" causes tfswitch to error
3 participants