Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 6bba070

Browse files
authored
chore: Replace includePrelease with channels (#1)
And add tests
1 parent 9785cfc commit 6bba070

File tree

10 files changed

+287
-79
lines changed

10 files changed

+287
-79
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"go.testEnvVars": {
3+
"TF_ACC": "1"
4+
}
5+
}

docs/data-sources/dart_versions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ A list of Dart SDK versions.
2222

2323
### Optional
2424

25-
- `include_prerelease` (Boolean) Whether to include pre-release versions.
25+
- `channels` (List of String) The list of release channels to include.
2626

2727
### Read-Only
2828

29-
- `container_versions` (List of String) The list of container versions. This excludes patch versions except for pre-release versions.
3029
- `id` (String) The ID of the config. Format: `{sdkType}/{minVersion}`.
3130
- `versions` (List of String) The list of versions.

docs/index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ provider "turso" {
2121
<!-- schema generated by tfplugindocs -->
2222
## Schema
2323

24-
### Required
25-
26-
- `project_id` (String) GCP project ID
27-
2824
### Optional
2925

3026
- `access_token` (String) Optional. GCP access token
27+
- `project_id` (String) GCP project ID

go.mod

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ require (
99
github.com/hashicorp/terraform-plugin-docs v0.19.4
1010
github.com/hashicorp/terraform-plugin-framework v1.10.0
1111
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0
12+
github.com/hashicorp/terraform-plugin-go v0.23.0
1213
github.com/hashicorp/terraform-plugin-log v0.9.0
14+
github.com/hashicorp/terraform-plugin-testing v1.10.0
1315
golang.org/x/oauth2 v0.22.0
1416
golang.org/x/sync v0.8.0
1517
google.golang.org/api v0.191.0
@@ -31,6 +33,7 @@ require (
3133
github.com/Masterminds/semver/v3 v3.2.0 // indirect
3234
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
3335
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect
36+
github.com/agext/levenshtein v1.2.2 // indirect
3437
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
3538
github.com/armon/go-radix v1.0.0 // indirect
3639
github.com/bgentry/speakeasy v0.1.0 // indirect
@@ -43,6 +46,7 @@ require (
4346
github.com/go-logr/stdr v1.2.2 // indirect
4447
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4548
github.com/golang/protobuf v1.5.4 // indirect
49+
github.com/google/go-cmp v0.6.0 // indirect
4650
github.com/google/s2a-go v0.1.8 // indirect
4751
github.com/google/uuid v1.6.0 // indirect
4852
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
@@ -51,15 +55,19 @@ require (
5155
github.com/hashicorp/errwrap v1.1.0 // indirect
5256
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
5357
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
58+
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
5459
github.com/hashicorp/go-hclog v1.6.3 // indirect
5560
github.com/hashicorp/go-multierror v1.1.1 // indirect
5661
github.com/hashicorp/go-plugin v1.6.0 // indirect
62+
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
5763
github.com/hashicorp/go-uuid v1.0.3 // indirect
5864
github.com/hashicorp/go-version v1.7.0 // indirect
59-
github.com/hashicorp/hc-install v0.7.0 // indirect
65+
github.com/hashicorp/hc-install v0.8.0 // indirect
66+
github.com/hashicorp/hcl/v2 v2.21.0 // indirect
67+
github.com/hashicorp/logutils v1.0.0 // indirect
6068
github.com/hashicorp/terraform-exec v0.21.0 // indirect
6169
github.com/hashicorp/terraform-json v0.22.1 // indirect
62-
github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect
70+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 // indirect
6371
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
6472
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
6573
github.com/hashicorp/yamux v0.1.1 // indirect
@@ -70,31 +78,36 @@ require (
7078
github.com/mattn/go-runewidth v0.0.9 // indirect
7179
github.com/mitchellh/copystructure v1.2.0 // indirect
7280
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
81+
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
82+
github.com/mitchellh/mapstructure v1.5.0 // indirect
7383
github.com/mitchellh/reflectwalk v1.0.2 // indirect
7484
github.com/oklog/run v1.0.0 // indirect
7585
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
7686
github.com/posener/complete v1.2.3 // indirect
7787
github.com/shopspring/decimal v1.3.1 // indirect
7888
github.com/spf13/cast v1.5.0 // indirect
89+
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
7990
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
8091
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
8192
github.com/yuin/goldmark v1.7.1 // indirect
8293
github.com/yuin/goldmark-meta v1.1.0 // indirect
83-
github.com/zclconf/go-cty v1.14.4 // indirect
94+
github.com/zclconf/go-cty v1.15.0 // indirect
8495
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
8596
go.opencensus.io v0.24.0 // indirect
8697
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.53.0 // indirect
8798
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
8899
go.opentelemetry.io/otel v1.28.0 // indirect
89100
go.opentelemetry.io/otel/metric v1.28.0 // indirect
90101
go.opentelemetry.io/otel/trace v1.28.0 // indirect
91-
golang.org/x/crypto v0.25.0 // indirect
102+
golang.org/x/crypto v0.26.0 // indirect
92103
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
93-
golang.org/x/mod v0.17.0 // indirect
104+
golang.org/x/mod v0.19.0 // indirect
94105
golang.org/x/net v0.27.0 // indirect
95106
golang.org/x/sys v0.23.0 // indirect
96-
golang.org/x/text v0.16.0 // indirect
107+
golang.org/x/text v0.17.0 // indirect
97108
golang.org/x/time v0.6.0 // indirect
109+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
110+
google.golang.org/appengine v1.6.8 // indirect
98111
google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect
99112
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
100113
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect

0 commit comments

Comments
 (0)