-
Notifications
You must be signed in to change notification settings - Fork 135
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
Introduce go-to-variable from tfvars
files
#727
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good start and thank you for capturing the GIFs!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one note about the test, but LGTM overall!
I'm however currently investigating a bug which may result in a patch release and so if you can avoid merging this until I'm done investigating that would be great!
@@ -64,6 +64,11 @@ func TestModuleLoader_referenceCollection(t *testing.T) { | |||
if err != nil { | |||
t.Fatal(err) | |||
} | |||
varsOriginsOp := NewModuleOperation(modPath, op.OpTypeDecodeVarsReferences) | |||
err = ml.EnqueueModuleOp(varsOriginsOp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this part of the test isn't going to be very useful unless we also add tfvars file(s) to the test module in testdata/single-root-no-modules
. It may be fine just to leave this test as it was though. The logic seems well tested in isolation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to merge once conflicts are resolved
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Closes #618
Depends on:
tfvars
w/ variables terraform-schema#84UX Implications
Go to definition
Go to reference(s)