Skip to content

Commit

Permalink
Use info.Version in initialSetup to set the version field on the gene…
Browse files Browse the repository at this point in the history
…rated schema
  • Loading branch information
guineveresaenger committed Dec 12, 2024
1 parent ab8f8ac commit c808b54
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions dynamic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func initialSetup() (info.Provider, pfbridge.ProviderMetadata, func() error) {
spec.Attribution = ""
spec.Provider = schema.ResourceSpec{}
spec.Language = nil
spec.Version = version.Version()
},
}

Expand Down Expand Up @@ -90,6 +89,7 @@ func initialSetup() (info.Provider, pfbridge.ProviderMetadata, func() error) {
if err != nil {
return nil, err
}
packageSchema.PackageSpec.Version = info.Version

if info.SchemaPostProcessor != nil {
info.SchemaPostProcessor(&packageSchema.PackageSpec)
Expand Down Expand Up @@ -132,7 +132,6 @@ func initialSetup() (info.Provider, pfbridge.ProviderMetadata, func() error) {
if err != nil {
return plugin.ParameterizeResponse{}, err
}

v, err := semver.Parse(p.Version())
if err != nil {
return plugin.ParameterizeResponse{}, err
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "b2",
"version": "0.8.9",
"description": "A Pulumi provider dynamically bridged from b2.",
"attribution": "This Pulumi package is based on the [`b2` Terraform Provider](https://github.com/backblaze/terraform-provider-b2).",
"repository": "https://github.com/backblaze/terraform-provider-b2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "databricks",
"version": "1.50.0",
"description": "A Pulumi provider dynamically bridged from databricks.",
"attribution": "This Pulumi package is based on the [`databricks` Terraform Provider](https://github.com/databricks/terraform-provider-databricks).",
"repository": "https://github.com/databricks/terraform-provider-databricks",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "random",
"version": "3.3.0",
"description": "A Pulumi provider dynamically bridged from random.",
"attribution": "This Pulumi package is based on the [`random` Terraform Provider](https://github.com/hashicorp/terraform-provider-random).",
"repository": "https://github.com/hashicorp/terraform-provider-random",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "random",
"version": "3.6.3",
"description": "A Pulumi provider dynamically bridged from random.",
"attribution": "This Pulumi package is based on the [`random` Terraform Provider](https://github.com/hashicorp/terraform-provider-random).",
"repository": "https://github.com/hashicorp/terraform-provider-random",
Expand Down

0 comments on commit c808b54

Please sign in to comment.