Skip to content

Commit

Permalink
[fix] check-docs hacky fix for bug in terraform-plugin-docs (#343)
Browse files Browse the repository at this point in the history
See upstream [bug report](hashicorp/terraform-plugin-docs#12).

## Test Plan
* [ ] CI

## References
* hashicorp/terraform-plugin-docs#12
  • Loading branch information
ryanking committed Dec 9, 2020
1 parent 54407e3 commit 35c381d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -112,7 +112,7 @@ clean: ## clean the repo
.PHONY: clean

docs:
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
SNOWFLAKE_USER= SNOWFLAKE_ACCOUNT= go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
.PHONY: docs

check-docs: docs ## check that docs have been generated
Expand Down
7 changes: 5 additions & 2 deletions docs/index.md
Expand Up @@ -32,16 +32,19 @@ provider snowflake {

## Schema

### Required

- **account** (String, Required)
- **username** (String, Required)

### Optional

- **account** (String, Optional)
- **browser_auth** (Boolean, Optional)
- **oauth_access_token** (String, Optional)
- **password** (String, Optional)
- **private_key_path** (String, Optional)
- **region** (String, Optional)
- **role** (String, Optional)
- **username** (String, Optional)


## Authentication
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -15,5 +15,5 @@ require (
github.com/snowflakedb/gosnowflake v1.3.12
github.com/stretchr/testify v1.6.1
golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9
golang.org/x/tools v0.0.0-20201208225042-ef0c635082b3
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2
)
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -937,8 +937,8 @@ golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roY
golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
golang.org/x/tools v0.0.0-20201208225042-ef0c635082b3 h1:ZCTyS0mmKNKnJH/wbIdBVEe+mhkxEgV6lDU9G4ZYH6M=
golang.org/x/tools v0.0.0-20201208225042-ef0c635082b3/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2 h1:vEtypaVub6UvKkiXZ2xx9QIvp9TL7sI7xp7vdi2kezA=
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down

0 comments on commit 35c381d

Please sign in to comment.