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

Create cache hash after command #64

Merged

Conversation

marshall7m
Copy link
Contributor

The current implementation creates the cache hash value before running the terraform or terragrunt command. If the command creates any files within the tfdir directory then the cache will not be used for the subsequent call since the hash value is dependent on the contents of the tfdir. This is seen for example with the terragrunt init command that produces a .terragrunt-cache directory. To ensure that this directory is considered for the hash, the hash is now generated also after the command is executed.

@ludoo ludoo merged commit d3d1e37 into GoogleCloudPlatform:master Nov 9, 2022
@marshall7m marshall7m deleted the cache-hash-dir-terragrunt branch November 11, 2022 00:01
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.

2 participants