3 Commits

Author SHA1 Message Date
Brian Flad
37b9fa0171
Use tfversion variables instead of go-version directly for function testing (#221)
Reference: https://github.com/hashicorp/terraform-provider-scaffolding-framework/pull/220

Consuming developers should not directly need to worry about `github.com/hashicorp/go-version` unless they want to use that Go module. Provider-defined functions testing was releasing in this template repository before the Terraform 1.8.0 version variable in the terraform-plugin-testing `tfversion` package was available. Now that the variable is present, we can remove go-version as a direct dependency, simplifying both the code and dependency management slightly.
2024-05-24 12:40:10 -04:00
hashicorp-copywrite[bot]
137daa7293
[COMPLIANCE] Add Copyright and License Headers (#199)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2024-03-04 11:44:55 -05:00
Brian Flad
c4ac215bff
Bump Go version, dependency versions, add example function (#198)
Reference: https://developer.hashicorp.com/terraform/plugin/framework/functions
Reference: https://github.com/hashicorp/terraform-providers-devex-internal/issues/175

Terraform 1.8 and later introduce the concept of provider-defined functions and this adds an example function that accepts a string argument and returns the same value as a string return.

Dependencies updated via:

```
go get github.com/hashicorp/terraform-plugin-framework@v1.6.0
go get github.com/hashicorp/terraform-plugin-docs@v0.18.0
go mod tidy
```
2024-02-28 10:11:33 -05:00