We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a697a commit e044410Copy full SHA for e044410
main.go
@@ -4,8 +4,6 @@ package main
4
import (
5
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
6
"github.com/petoju/terraform-provider-mysql/v3/mysql"
7
- // Added to ensure we have tfplugindocs available in go.mod
8
- _ "github.com/hashicorp/terraform-plugin-docs"
9
)
10
11
func main() {
tools.go
@@ -0,0 +1,12 @@
1
+//go:build tools
2
+
3
+/*
+ Used for keeping ftplugindocs in the go.mod when using go mod tidy
+ and used as go:generate
+ Recommended approach per: https://github.com/golang/go/issues/25922#issuecomment-413898264
+*/
+package main
+import (
+ _ "github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs"
12
+)
0 commit comments