From 6ba18137f5431908511a813b62c1a15730e85033 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Wed, 18 Dec 2024 18:21:47 +0100 Subject: [PATCH] Use the upstream provider's org as Publisher (#2774) Use the upstream GH org as the publisher for remote providers. --- dynamic/info.go | 2 +- dynamic/testdata/TestSchemaGeneration/Backblaze/b2-0.8.9.golden | 2 +- .../TestSchemaGeneration/databricks/databricks-1.50.0.golden | 2 +- .../testdata/TestSchemaGeneration/hashicorp/random-3.3.0.golden | 2 +- .../TestSchemaGenerationFullDocs/hashicorp/random-3.6.3.golden | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dynamic/info.go b/dynamic/info.go index 9c30ddaec..64f8e9f7f 100644 --- a/dynamic/info.go +++ b/dynamic/info.go @@ -39,7 +39,6 @@ func providerInfo(ctx context.Context, p run.Provider, value parameterize.Value) Name: p.Name(), Version: p.Version(), Description: "A Pulumi provider dynamically bridged from " + p.Name() + ".", - Publisher: "Pulumi", ResourcePrefix: inferResourcePrefix(provider), MetadataInfo: &tfbridge.MetadataInfo{ @@ -97,6 +96,7 @@ func providerInfo(ctx context.Context, p run.Provider, value parameterize.Value) ghOrg := urlFields[len(urlFields)-2] name := urlFields[len(urlFields)-1] prov.GitHubOrg = ghOrg + prov.Publisher = ghOrg prov.Repository = "https://github.com/" + ghOrg + "/terraform-provider-" + name } diff --git a/dynamic/testdata/TestSchemaGeneration/Backblaze/b2-0.8.9.golden b/dynamic/testdata/TestSchemaGeneration/Backblaze/b2-0.8.9.golden index 61b66184c..983828dee 100644 --- a/dynamic/testdata/TestSchemaGeneration/Backblaze/b2-0.8.9.golden +++ b/dynamic/testdata/TestSchemaGeneration/Backblaze/b2-0.8.9.golden @@ -4,7 +4,7 @@ "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", - "publisher": "Pulumi", + "publisher": "backblaze", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" }, diff --git a/dynamic/testdata/TestSchemaGeneration/databricks/databricks-1.50.0.golden b/dynamic/testdata/TestSchemaGeneration/databricks/databricks-1.50.0.golden index 082d3ed97..64f585b31 100644 --- a/dynamic/testdata/TestSchemaGeneration/databricks/databricks-1.50.0.golden +++ b/dynamic/testdata/TestSchemaGeneration/databricks/databricks-1.50.0.golden @@ -4,7 +4,7 @@ "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", - "publisher": "Pulumi", + "publisher": "databricks", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" }, diff --git a/dynamic/testdata/TestSchemaGeneration/hashicorp/random-3.3.0.golden b/dynamic/testdata/TestSchemaGeneration/hashicorp/random-3.3.0.golden index 381e8a1a1..884e8eac6 100644 --- a/dynamic/testdata/TestSchemaGeneration/hashicorp/random-3.3.0.golden +++ b/dynamic/testdata/TestSchemaGeneration/hashicorp/random-3.3.0.golden @@ -4,7 +4,7 @@ "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", - "publisher": "Pulumi", + "publisher": "hashicorp", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" }, diff --git a/dynamic/testdata/TestSchemaGenerationFullDocs/hashicorp/random-3.6.3.golden b/dynamic/testdata/TestSchemaGenerationFullDocs/hashicorp/random-3.6.3.golden index 4bcd14a79..21e6df466 100644 --- a/dynamic/testdata/TestSchemaGenerationFullDocs/hashicorp/random-3.6.3.golden +++ b/dynamic/testdata/TestSchemaGenerationFullDocs/hashicorp/random-3.6.3.golden @@ -4,7 +4,7 @@ "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", - "publisher": "Pulumi", + "publisher": "hashicorp", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" },