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

Introduce go-to-variable from tfvars files #727

Merged
merged 7 commits into from
Jan 13, 2022
Merged

Introduce go-to-variable from tfvars files #727

merged 7 commits into from
Jan 13, 2022

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Nov 26, 2021

Closes #618


Depends on:

UX Implications

Go to definition

2021-11-26 17 23 08

Go to reference(s)

2021-11-26 17 23 50

Copy link
Member

@radeksimko radeksimko left a 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!

internal/terraform/module/module_ops.go Outdated Show resolved Hide resolved
internal/terraform/module/module_ops.go Show resolved Hide resolved
@dbanck dbanck marked this pull request as ready for review December 3, 2021 10:50
@dbanck dbanck requested a review from a team December 3, 2021 10:51
Copy link
Member

@radeksimko radeksimko left a 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)
Copy link
Member

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.

Copy link
Member

@radeksimko radeksimko left a 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

@dbanck dbanck merged commit 46820bd into main Jan 13, 2022
@dbanck dbanck deleted the f-path-target branch January 13, 2022 09:14
@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2022
@radeksimko radeksimko added this to the v0.26.0 milestone Feb 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide tfvars references for variable blocks
2 participants