-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Updating to 0.38.1 from 0.37.1 breaks terragrunt-cache source update #2171
Comments
I think I'm seeing this also, or something similar. I just updated to terragrunt 0.38.2 this morning, and now even running |
I've tested 0.37.1, 0.37.2, and 0.37.3, and it stops working in 0.37.3, which seems to confirm that the change in PR #2006 introduced the problem. |
Hi, |
My main repo is really quite complicated. Not sure I can exactly distill it down for a repro. But the general setup is something like:
and the terragrunt.hcl is super simple:
And then I make a change to the Then I run |
I put together a small test https://github.com/denis256/terragrunt-tests/tree/master/issue-2171
I tried to update app/mod1, modules/mod1, modules/mod2 but still (tested on Ubuntu 22.04 LTS) It is a similar setup that generates the issue? |
That setup looks like it represents what I described, but when I test your repo, I also cannot reproduce the issue. There must be something in the cache refresh step that interacts with other terragrunt features that we're using? We're also using remote_state, extra_arguments, before_hook, after_hook, generate, inputs, and locals. |
Or mebbe... looking over the changeset for #2006, mebbe for some other reason I'm hitting a hash error in this project when calculating the hash for the source directory, and so it's just returning the hash of the source url (which hasn't changed)? If so, could we at least get some more debug logging in there, that doesn't just swallow the error? |
In https://github.com/denis256/terragrunt-tests/releases/tag/issue-2171 I added a build that will log errors, I will also try scenario when error happens during hash calculation |
Yep, the hash function is hitting an error!
|
Hi, https://github.com/gruntwork-io/terragrunt/releases/tag/v0.38.4 |
I can, though it looks like 0.38.4 isn't available on Brew yet, only 0.38.3. Is that going to change soon? Greatly appreciate the work and activity on this issue btw :) |
Using 0.38.4, I am no longer seeing the behavior I was describing earlier. It is now working as expected! Thanks! However I was expecting to see a warning about the failure to hash the directory, but I am not seeing that either. Perhaps the new hash approach in 0.38.4 is not susceptible in the first place to the failure mode I was encountering in the prior hash approach? |
Hi, |
Hi, on MacOS I updated to the latest version of Terragrunt and found it no longer updates the cache folder when I make changes to my Terraform source. When I make a change to the Terraform code, no plan changes are detected because the cache directory has the old version of the code. Previously that wasn't the case and worked as expected.
The text was updated successfully, but these errors were encountered: