Skip to content

Commit

Permalink
Remove explicit dependency on core SDK (#4478)
Browse files Browse the repository at this point in the history
This change removes the explicitly specified dependency on the core SDK
from the schema so that the SDK generator can emit the minimum required
version that's actually required for the generated provider SDK.
  • Loading branch information
justinvp authored Sep 27, 2024
1 parent b62cf93 commit a795267
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
7 changes: 0 additions & 7 deletions provider/cmd/pulumi-resource-aws/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
},
"language": {
"csharp": {
"packageReferences": {
"Pulumi": "3.*"
},
"namespaces": {
"accessanalyzer": "AccessAnalyzer",
"account": "Account",
Expand Down Expand Up @@ -249,7 +246,6 @@
"packageDescription": "A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.",
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/hashicorp/terraform-provider-aws)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-aws` repo](https://github.com/pulumi/pulumi-aws/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-aws` repo](https://github.com/hashicorp/terraform-provider-aws/issues).",
"dependencies": {
"@pulumi/pulumi": "^3.0.0",
"builtin-modules": "3.0.0",
"mime": "^2.0.0",
"resolve": "^1.7.1"
Expand All @@ -263,9 +259,6 @@
"respectSchemaVersion": true
},
"python": {
"requires": {
"pulumi": "\u003e=3.0.0,\u003c4.0.0"
},
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/hashicorp/terraform-provider-aws)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-aws` repo](https://github.com/pulumi/pulumi-aws/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-aws` repo](https://github.com/hashicorp/terraform-provider-aws/issues).",
"compatibility": "tfbridge20",
"respectSchemaVersion": true,
Expand Down
13 changes: 3 additions & 10 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -5233,7 +5233,6 @@ compatibility shim in favor of the new "name" field.`)
},
JavaScript: &tfbridge.JavaScriptInfo{
Dependencies: map[string]string{
"@pulumi/pulumi": "^3.0.0",
"mime": "^2.0.0",
"builtin-modules": "3.0.0",
"resolve": "^1.7.1",
Expand Down Expand Up @@ -5364,11 +5363,8 @@ compatibility shim in favor of the new "name" field.`)
},
Python: &tfbridge.PythonInfo{
RespectSchemaVersion: true,
Requires: map[string]string{
"pulumi": ">=3.0.0,<4.0.0",
},
PyProject: struct{ Enabled bool }{true},
InputTypes: tfbridge.PythonInputTypeClassesAndDicts,
PyProject: struct{ Enabled bool }{true},
InputTypes: tfbridge.PythonInputTypeClassesAndDicts,
},
Golang: &tfbridge.GolangInfo{
ImportBasePath: filepath.Join(
Expand All @@ -5382,10 +5378,7 @@ compatibility shim in favor of the new "name" field.`)
},
CSharp: &tfbridge.CSharpInfo{
RespectSchemaVersion: true,
PackageReferences: map[string]string{
"Pulumi": "3.*",
},
Namespaces: namespaceMap,
Namespaces: namespaceMap,
},
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Pulumi.Aws.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/nodejs/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a795267

Please sign in to comment.