-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
terraform test
crash when using module.source
#33586
Comments
Note: I thought this might be due to the fact that the source i point at doesnt have the local defined (dont hate me, im just trying this feature out :D). However, i tried adding the local to that root and still get a crash In case its helpful, heres the PR im using to track my various tests: aws-ia/terraform-aws-vpc#127 |
terraform test
crash when using module.source
1terraform test
crash when using module.source
I also just noticed that the example dir has a module source pointing to the hashi registry, i tried changing that to relative path back to the root, same crash
|
Hi @drewmullen, thanks for finding another bug! I can confirm I can replicate this. From what I can tell the cause of this seems to be modules loaded from run blocks referencing child modules. We'll get this fixed for the next prerelease! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
test should plan the root module located in
./examples/public_private_flow_logs
then run assert statements against itActual Behavior
crash
Steps to Reproduce
Additional Context
im sure yall went back and forth on this but, initially i set
source = "../examples/"
since that is the relative path to mytests
dir. Not saying you should change it but... that was my initial thoughtReferences
No response
The text was updated successfully, but these errors were encountered: