Skip to content

Commit

Permalink
Use the upstream provider's org as Publisher (#2774)
Browse files Browse the repository at this point in the history
Use the upstream GH org as the publisher for remote providers.
  • Loading branch information
iwahbe authored Dec 18, 2024
1 parent c4215af commit 6ba1813
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dynamic/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": "(.*)(?:/[^/]*)"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": "(.*)(?:/[^/]*)"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": "(.*)(?:/[^/]*)"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": "(.*)(?:/[^/]*)"
},
Expand Down

0 comments on commit 6ba1813

Please sign in to comment.