-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add DocsLink for remote module source attributes #103
Conversation
982c114
to
f3db2dd
Compare
af1666c
to
78d165d
Compare
78d165d
to
afaf506
Compare
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 remaining question, otherwise LGTM.
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.
@@ -382,6 +382,34 @@ func TestSchemaForDependentModuleBlock_DocsLink(t *testing.T) { | |||
}, | |||
}, | |||
}, | |||
{ | |||
"remote module on unknown registry", |
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.
Thanks for the extra test! 👍🏻
Required for hashicorp/vscode-terraform#673
Depends on
This PR adds a
DocsLink
to the depended module schema if the module is a registry (e.g. registry.terraform.io) one.I added a
Version
field toModuleCall
, required for building the docs link. To populate this field a change interraform-ls
is required (hashicorp/terraform-ls#874).terraform-schema/module/meta.go
Lines 70 to 75 in af1666c