Skip to content

Commit c859bfb

Browse files
committed
Move tfplugindocs to a go.mod managed tool
1 parent a7dbb0f commit c859bfb

File tree

6 files changed

+106
-90
lines changed

6 files changed

+106
-90
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ docker-clean: ## Try to remove provisioned nodes and assigned network
225225

226226
.PHONY: docs-generate
227227
docs-generate: tools ## Generate documentation for the provider
228-
@ $(GOBIN)/tfplugindocs
228+
@ go tool github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
229229

230230

231231
.PHONY: gen
@@ -247,7 +247,6 @@ install: build ## Install built provider into the local terraform cache
247247
.PHONY: tools
248248
tools: $(GOBIN) tools-golangci-lint ## Install useful tools for linting, docs generation and development
249249
@ cd tools && go install github.com/client9/misspell/cmd/misspell
250-
@ cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
251250
@ cd tools && go install github.com/goreleaser/goreleaser/v2
252251

253252
.PHONY: tools-golangci-lint

go.mod

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/elastic/terraform-provider-elasticstack
22

3-
go 1.23.0
3+
go 1.23.7
44

55
toolchain go1.24.4
66

@@ -27,11 +27,19 @@ require (
2727
)
2828

2929
require (
30+
github.com/BurntSushi/toml v1.3.2 // indirect
31+
github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect
32+
github.com/Masterminds/goutils v1.1.1 // indirect
33+
github.com/Masterminds/semver/v3 v3.2.0 // indirect
34+
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
3035
github.com/ProtonMail/go-crypto v1.1.6 // indirect
3136
github.com/agext/levenshtein v1.2.3 // indirect
3237
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
3338
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
34-
github.com/cloudflare/circl v1.6.0 // indirect
39+
github.com/armon/go-radix v1.0.0 // indirect
40+
github.com/bgentry/speakeasy v0.1.0 // indirect
41+
github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect
42+
github.com/cloudflare/circl v1.6.1 // indirect
3543
github.com/davecgh/go-spew v1.1.1 // indirect
3644
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
3745
github.com/fatih/color v1.17.0 // indirect
@@ -43,6 +51,7 @@ require (
4351
github.com/go-resty/resty/v2 v2.16.5 // indirect
4452
github.com/golang/protobuf v1.5.4 // indirect
4553
github.com/google/go-cmp v0.7.0 // indirect
54+
github.com/hashicorp/cli v1.1.7 // indirect
4655
github.com/hashicorp/errwrap v1.1.0 // indirect
4756
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
4857
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
@@ -56,14 +65,18 @@ require (
5665
github.com/hashicorp/logutils v1.0.0 // indirect
5766
github.com/hashicorp/terraform-exec v0.23.0 // indirect
5867
github.com/hashicorp/terraform-json v0.25.0 // indirect
68+
github.com/hashicorp/terraform-plugin-docs v0.22.0 // indirect
5969
github.com/hashicorp/terraform-registry-address v0.2.5 // indirect
6070
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
6171
github.com/hashicorp/yamux v0.1.1 // indirect
72+
github.com/huandu/xstrings v1.3.3 // indirect
73+
github.com/imdario/mergo v0.3.15 // indirect
6274
github.com/invopop/yaml v0.3.1 // indirect
6375
github.com/josharian/intern v1.0.0 // indirect
6476
github.com/mailru/easyjson v0.7.7 // indirect
65-
github.com/mattn/go-colorable v0.1.13 // indirect
77+
github.com/mattn/go-colorable v0.1.14 // indirect
6678
github.com/mattn/go-isatty v0.0.20 // indirect
79+
github.com/mattn/go-runewidth v0.0.9 // indirect
6780
github.com/mitchellh/copystructure v1.2.0 // indirect
6881
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
6982
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
@@ -72,24 +85,31 @@ require (
7285
github.com/oklog/run v1.1.0 // indirect
7386
github.com/perimeterx/marshmallow v1.1.5 // indirect
7487
github.com/pmezard/go-difflib v1.0.0 // indirect
88+
github.com/posener/complete v1.2.3 // indirect
89+
github.com/shopspring/decimal v1.3.1 // indirect
7590
github.com/sirupsen/logrus v1.9.3 // indirect
7691
github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect
92+
github.com/spf13/cast v1.5.0 // indirect
7793
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
7894
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
7995
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
8096
github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect
81-
github.com/zclconf/go-cty v1.16.2 // indirect
97+
github.com/yuin/goldmark v1.7.7 // indirect
98+
github.com/yuin/goldmark-meta v1.1.0 // indirect
99+
github.com/zclconf/go-cty v1.16.3 // indirect
100+
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
82101
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
83102
go.opentelemetry.io/otel v1.34.0 // indirect
84103
go.opentelemetry.io/otel/metric v1.34.0 // indirect
85104
go.opentelemetry.io/otel/trace v1.34.0 // indirect
86105
golang.org/x/crypto v0.38.0 // indirect
87-
golang.org/x/mod v0.24.0 // indirect
88-
golang.org/x/net v0.39.0 // indirect
89-
golang.org/x/sync v0.14.0 // indirect
106+
golang.org/x/exp v0.0.0-20230811145659-89c5cff77bcb // indirect
107+
golang.org/x/mod v0.25.0 // indirect
108+
golang.org/x/net v0.40.0 // indirect
109+
golang.org/x/sync v0.15.0 // indirect
90110
golang.org/x/sys v0.33.0 // indirect
91-
golang.org/x/text v0.25.0 // indirect
92-
golang.org/x/tools v0.23.0 // indirect
111+
golang.org/x/text v0.26.0 // indirect
112+
golang.org/x/tools v0.33.0 // indirect
93113
google.golang.org/appengine v1.6.8 // indirect
94114
google.golang.org/genproto/googleapis/rpc v0.0.0-20250218202821-56aae31c358a // indirect
95115
google.golang.org/grpc v1.72.1 // indirect
@@ -100,6 +120,8 @@ require (
100120

101121
replace github.com/disaster37/go-kibana-rest/v8 => ./libs/go-kibana-rest
102122

103-
tool go.uber.org/mock/mockgen
104-
105-
tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
123+
tool (
124+
go.uber.org/mock/mockgen
125+
github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
126+
github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
127+
)

0 commit comments

Comments
 (0)