-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
modules/terraform/var-file.go:142:8: undefined: hcl.Decode #784
Comments
Problem started with #733 |
Apparently this version breaks compatibility with go dep. |
I think the root of the issue is dep is trying to pull v2 of hcl while the go mod of the terratest library explicitly referenes v1, so dep isnt respecting the libraries required version |
@alpacamybags118, @WafflesMcDuff I got the same error when running
Meanwhile, I just remove the generic latest dependency called from the YAML file of my pipeline by executing
And by default the GitHub actions pipeline is taking it:
|
Confirming, having same problem with the recent changes. Testing, trying to find a workaround. |
As WafflesMcDuff mentioned, use
instead of
|
This is indeed a bug as we should be using hclv2. Will work on updating the library function to use hcl v2 asap. |
This issue is affecting me as well. Part of the pipeline we wrote ensures we always use the latest terratest version so it has been broken and preventing any tests from actually running. |
Potential fix for this was released https://github.com/gruntwork-io/terratest/releases/tag/v0.32.8 Please try it out and see if it resolves this. |
Unfortunately I am still having this issue. I assume that is why you re-opened the issue, but wanted to comment in case you were unaware. |
Can you share with me the error message you got? It should be different since the call to If you are still getting the same error message, then you need to first bump terratest in your |
It is different now. Is this a separate issue or still the same issue?
|
Ah yes this is a separate issue. Can you try running |
I was able to fix my new issue with |
Thanks for confirming! Will close this issue then. Please open a new issue if you run into other issues with go dependencies! |
Latest release is causing an error:
terratest/modules/terraform/var-file.go
Line 142 in 88ba3f0
The text was updated successfully, but these errors were encountered: