You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* build: bump go version to 1.20
* doc(CHANGELOG): v5.7.0
* fix: replace math/rand with crypto/rand
* build: use gorelease 1.21.2
* ci: bump go to 1.20.x
-[Terraform](https://www.terraform.io/downloads.html) 0.12.x or higher
12
-
-[Go](https://golang.org/doc/install) 1.18 (to build the provider plugin)
10
+
-[Terraform](https://www.terraform.io/downloads.html) 0.12.x or higher
11
+
-[Go](https://golang.org/doc/install) 1.20 (to build the provider plugin)
13
12
14
13
> NOTE: the last version of the Fastly provider to support Terraform 0.11.x and below was [v0.26.0](https://github.com/fastly/terraform-provider-fastly/releases/tag/v0.26.0)
15
14
@@ -31,7 +30,7 @@ $ make build
31
30
32
31
## Developing the Provider
33
32
34
-
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.18+ is *required*).
33
+
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.20+ is *required*).
35
34
36
35
To compile the provider, run `make build`. This will build the provider and put the provider binary in a local `bin` directory.
37
36
@@ -43,7 +42,7 @@ $ make build
43
42
Alongside the newly built binary a file called `developer_overrides.tfrc` will be created. The `make build` target will communicate
44
43
back details for setting the `TF_CLI_CONFIG_FILE` environment variable that will enable Terraform to use your locally built provider binary.
45
44
46
-
* HashiCorp - [Development Overrides for Provider developers](https://www.terraform.io/docs/cli/config/config-file.html#development-overrides-for-provider-developers).
45
+
- HashiCorp - [Development Overrides for Provider developers](https://www.terraform.io/docs/cli/config/config-file.html#development-overrides-for-provider-developers).
47
46
48
47
> **NOTE**: If you have issues seeing any behaviours from code changes you've made to the provider, then it might be the terraform CLI is getting confused by which provider binary it should be using. Check inside the `./bin/` directory to see if there are multiple providers with different commit hashes (e.g. `terraform-provider-fastly_v2.2.0-5-gfdc37cee`) and delete them first before running `make build`. This should help the Terraform CLI resolve to the correct binary.
49
48
@@ -87,6 +86,7 @@ Then use Terraform as usual, and it will automatically use the provider in the d
You will then be able to set breakpoints and trace the provider's execution using the debugger as you would expect.
91
91
92
92
The implementation for setting up debug mode presumes Terraform 0.13.x is being used. If you're using Terraform 0.12.x you'll need to manually modify the value assigned to `TF_REATTACH_PROVIDERS` so that the key `"fastly/fastly"` becomes `"registry.terraform.io/-/fastly"`. See HashiCorp's ["Support for Debuggable Provider Binaries"](https://www.terraform.io/docs/extend/guides/v2-upgrade-guide.html#support-for-debuggable-provider-binaries) for more details.
@@ -160,18 +160,20 @@ Building the documentation copies the full markdown into the `docs` folder, read
160
160
161
161
> NOTE: you'll need the [`tfplugindocs`](https://github.com/hashicorp/terraform-plugin-docs) tool for generating the Markdown to be deployed to Hashicorp. For more information on generating documentation, refer to https://www.terraform.io/docs/registry/providers/docs.html
162
162
163
-
* To validate the `/template` directory structure:
163
+
- To validate the `/template` directory structure:
164
+
164
165
```
165
166
make validate-docs
166
167
```
167
168
168
-
* To build the `/docs` documentation Markdown files:
169
+
- To build the `/docs` documentation Markdown files:
170
+
169
171
```
170
172
make generate-docs
171
173
```
172
174
173
-
* To view the documentation:
174
-
Paste `/docs` Markdown file content into https://registry.terraform.io/tools/doc-preview
175
+
- To view the documentation:
176
+
Paste `/docs` Markdown file content into https://registry.terraform.io/tools/doc-preview
0 commit comments